当前位置:网站首页>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边栏推荐
- Always remember: one day you will emerge from the chrysalis
- By building a sequence table - teach you to calculate time complexity and space complexity (including recursion)
- Security tip: FreeType in Qt
- Detailed explanation of JVM memory layout, class loading mechanism and garbage collection mechanism
- 线上靶机prompt.ml
- 正则表达式快速入门笔记
- kubernetes的一些命令
- Day113. Shangyitong: WeChat login QR code, login callback interface
- Flask's routing (app.route) detailed
- 阿里云OSS对象存储
猜你喜欢

Meikle Studio - see the actual combat notes of Hongmeng device development 4 - kernel development

SST-Calib:结合语义和VO进行时空同步校准的lidar-visual外参标定方法(ITSC 2022)

In the robot industry professionals, Mr Robot industry current situation?

类和对象—6个默认成员函数

电压跟随器不要随便加

Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)

typescript入门之helloworld

第3章 信息收集

Redis Desktop Manager 2022.4.2 发布

BERT pre-training model series summary
随机推荐
第2章 常用安全工具
jmeter接口压力测试-(二)
ESP32CAM 1838接收红外遥控器信号
分页 paging
Meikle Studio-Look at Hongmeng Device Development Practical Notes 7-Network Application Development
[Deep Learning] (Problem Record)
- Linear Regression - Small Batch Stochastic Gradient Descent Flink_CDC construction and simple use
The configuration process and related syntax of writing markdown format notes in vscode
通过构建一个顺序表——教你计算时间复杂度和空间复杂度(含递归)
BERT预训练模型系列总结
spark udf 接受并处理 null值.
flowable workflow all business concepts
WEB3之路(一)-- solidity学习笔记
Security思想项目总结
Understanding of deadlock
易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章
Classes and Objects - 6 Default Member Functions
360发布面向未来的EDR,全方位守护政企用户终端安全
加密和安全
OC - Manual Reference Counting Memory Management