当前位置:网站首页>Log4j additivity属性简介说明
Log4j additivity属性简介说明
2022-07-30 10:29:00 【qq_25073223】
下文笔者将讲述Log4j中的additivity属性的相关简介说明,如下所示:
Log4j中additivity属性的功能说明
Log4j中additivity的值为 true或false
additivity的值的功能为:
设置子Logger 是否继承父Logger的输出源(appender)的标志位
当additivity设为false,则子Logger只会在自己的appender里输出,而不会在父Logger的appender里输出
例
设置com.java265包及其子包下的Logger只在本Appender中输出
//log4j.properties log4j.additivity.com.test=false //log4j.xml <logger name="com.java265" additivity="false"> <level value="INFO" /> <appender-ref ref="logfile" /> </logger>
additivity注意事项:
loj4j默认情况下additivity为true
某个logger的additivity设置为false
指log只打印到本log的appender中,而不再打印到其父logger的appender边栏推荐
- [100个Solidity使用技巧]1、合约重入攻击
- MySQL installation tutorial [installation version]
- JCL 学习
- 第3章 信息收集
- 正则表达式快速入门笔记
- Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
- (BUG record) No module named PIL
- Paper reading: SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Security思想项目总结
- Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court
猜你喜欢

Materialist Dialectics - Conditionalism

hcip06 ospf special area comprehensive experiment

阿里云OSS对象存储

【AGC】增长服务2-应用内消息示例

Matplotlib--plot markers

图像去噪——Neighbor2Neighbor: Self-Supervised Denoising from Single Noisy Images
![[Qualcomm][Network] 网络拨号失败和netmgrd服务分析](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[Qualcomm][Network] 网络拨号失败和netmgrd服务分析

flowable workflow all business concepts

自适应控制——仿真实验一 用李雅普诺夫稳定性理论设计自适应规律

Quick Start Tutorial for flyway
随机推荐
Multi-threading scheme to ensure that a single thread opens a transaction and takes effect
BERT pre-training model series summary
系统设计精选 | 基于FPGA的CAN总线控制器的设计(附代码)
Do you really understand the 5 basic data structures of Redis?
Oracle中SQL语言和分页rownum分析
BERT预训练模型系列总结
Basemap and Seaborn
TestNg整合Retry代码
电压跟随器不要随便加
JVM内存布局、类加载机制及垃圾回收机制详解
The configuration process and related syntax of writing markdown format notes in vscode
Domino Server SSL Certificate Installation Guide
Re16: Read the paper ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanation
第3章 信息收集
【AGC】增长服务2-应用内消息示例
STM32CubeMX configuration to generate FreeRTOS project
RandLA-Net复现记录
Selected System Design | Design of CAN Bus Controller Based on FPGA (with Code)
4. yolov5-6.0 ERROR: AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' solution
In 2022, the top will be accepted cca shut the list