当前位置:网站首页>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边栏推荐
- Basemap and Seaborn
- 360发布面向未来的EDR,全方位守护政企用户终端安全
- WEB3之路(一)-- solidity学习笔记
- Re20:读论文的先例:普通法的信息理论分析
- Matplotlib--plot markers
- ESP32CAM 1838接收红外遥控器信号
- Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
- Oracle中SQL语言和分页rownum分析
- ospf2 two-point two-way republish (question 2)
- paging
猜你喜欢

系统设计精选 | 基于FPGA的CAN总线控制器的设计(附代码)

(C language) file operation

在机器人行业的专业人士眼里,机器人行业目前的情况如何?

神经网络学习笔记3——LSTM长短期记忆网络

神经网络学习笔记4——自动编码器(含稀疏,堆叠)(更新中)

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

【HMS core】【FAQ】HMS Toolkit Typical Questions Collection 1

Do you really understand the 5 basic data structures of Redis?

SST-Calib: A lidar-visual extrinsic parameter calibration method combining semantics and VO for spatiotemporal synchronization calibration (ITSC 2022)

图像去噪——Neighbor2Neighbor: Self-Supervised Denoising from Single Noisy Images
随机推荐
MFCC to audio, the effect should not be too funny >V
jmeter接口压力测试-(二)
【C和指针第七章】可变参数列表
PyQt5 - Drawing different types of straight lines
Unity 锁定相机第二弹
Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court
通过构建一个顺序表——教你计算时间复杂度和空间复杂度(含递归)
MySQL之数据库维护
【 HMS core 】 【 】 the FAQ HMS Toolkit collection of typical questions 1
死锁的理解
PyQt5 - draw sine curve with pixels
OC-手动引用计数内存管理
2022年顶会accepted papers list
log4js入门
加密和安全
【HMS core】【FAQ】HMS Toolkit Typical Questions Collection 1
多线程--线程和线程池的用法
图像去噪——Neighbor2Neighbor: Self-Supervised Denoising from Single Noisy Images
梅科尔工作室-看鸿蒙设备开发实战笔记六—无线联网开发
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?