当前位置:网站首页>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
边栏推荐
- OC-关于alloc和dealloc(还没开始写)
- flowable workflow all business concepts
- 梅科尔工作室-看鸿蒙设备开发实战笔记四——内核开发
- MySQL之数据库维护
- [100个Solidity使用技巧]1、合约重入攻击
- OC- about alloc and dealloc (haven't started writing yet)
- 电压跟随器不要随便加
- 图像去噪——Neighbor2Neighbor: Self-Supervised Denoising from Single Noisy Images
- Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)
- Quick Start Tutorial for flyway
猜你喜欢
唯物辩证法-条件论
Linux内核设计与实现(十)| 页高速缓存和页回写
易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章
Domino Server SSL Certificate Installation Guide
Redis Desktop Manager 2022.4.2 发布
PyQt5 - Drawing different types of straight lines
鸿湖万联扬帆富设备开发板正式合入OpenHarmony主干
Online target drone prompt.ml
从数据流中快速查找中位数
WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
随机推荐
数据库事务,JDBC操作和数据类型
Re16: Read the paper ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanation
Shell system learning function
阿里云OSS对象存储
Detailed explanation of JVM memory layout, class loading mechanism and garbage collection mechanism
自适应控制——仿真实验一 用李雅普诺夫稳定性理论设计自适应规律
JVM内存布局、类加载机制及垃圾回收机制详解
Unity 锁定相机第二弹
【HMS core】【FAQ】HMS Toolkit典型问题合集1
[100个Solidity使用技巧]1、合约重入攻击
BERT pre-training model series summary
New in GNOME: Warn users when Secure Boot is disabled
Practical Walkthrough | Calculate Daily Average Date or Time Interval in MySQL
梅科尔工作室-看鸿蒙设备开发实战笔记五——驱动子系统开发
JCL 学习
nacos实战项目中的配置
WebAPI 复习
软考 系统架构设计师 简明教程 | 系统运行与软件维护
what is this method called
线程池方式开启线程--submit()和execute()的区别