log4j的additivity属性值默认是设置为true的。可参考其api,地址:http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html#setAdditivityboolean。
描述:Additivity is set to true by default, that is children inherit
the appenders of their ancestors by default. If this variable is
set to false
then the appenders found in the
ancestors of this category are not used. However, the children
of this category will inherit its appenders, unless the children
have their additivity flag set to false
too. See
the user manual for more details.
默认为true时,就会产生冗余日志。所以只要设置为false,就可以去除冗余了。
log4j.rootLogger = INFO, ta
log4j.logger.com.test = INFO, ta
log4j.additivity.com.test = false
另外一篇参考文章的地址:http://veerasundar.com/blog/2009/08/log4j-tutorial-additivity-what-and-why/
分享到:
相关推荐
详细的讲解了Log4j的详细配置,不错!
具有共单调可加性的g-估计的一些结论,朱冬芸,田德建,本文研究了具有共单调可加性的g-估计的一些性质,证明了如果一个g-估计满足共单调可加性,则它也满足正齐次性,并且相应的生成元g�
避免重复打印日志,浪费磁盘空间,务必在log4j.xml中设置additivity=false。 D .错误日志和业务日志尽量分开存放。 多选 16.关于代码注释,下列哪些说法符合《阿里巴巴Java开发手册》:ABD A .特殊注释标记,请...
在六个数据库此包实现4个基团加方案(见下文),并且将转换输入为S上分子implified中号olecular-我NPUT大号ine-Ën尝试变体系()提供的组成基团,它们的出现频率,和估计的该分子的热力学性质。 pgradd还提供了一个...
- Logback+Slf4j多环境日志 - i18n - Maven Multi-Module - WebSocket - ElasticSearch # 功能们: ## 用户模块 - 获取图片验证码 - 登录:解决重复登录问题 - 注册 - 分页查询用户信息 - 修改用户信息 ## 站内...
Absolute deviation, 绝对离差 Absolute number, 绝对数 Absolute residuals, 绝对残差 Acceleration array, 加速度立体阵 Acceleration in an ...Additivity, 可加性 Adjusted rate, 调整率 Adjusted value, 校正值
additivity 可加性 adjusted 调整的 alternative hypothesis 对立假设 analysis 分析 analysis of covariance 协方差分析 analysis of variance 方差分析 arithmetic mean 算术平均值 association ...
We propose a novel grey component replacement (GCR) method based on the spectral density sub-additivity equations in this letter for spectral characterisation of a 4-ink colour printer. The method ...
In this Letter, a new fractional entangling transformation (FrET) is proposed, which is generated... The additivity property is proved by employing the entangled state representation and quantum mechanic
(2), O_(2), NO_(2), NO, N_(2)O) consisting of N & O atoms over an incident energy range of 100 - 1600 eV by the use of additivity rule at Roothaan-Hartree-Fock level. In the study, the complex optical...
独立原子模型IAM(Independent Atomic Model)和可加性规则AR(Additivity Rule)是一个很好的适用于电子与分子中高能正碰撞的有效方法。但是现用的AR对于电子与分子散射的截面计算明显高估了实际值。本文通过从分子的...
The total (elastic plus inelastic) cross sections for positron scattering from N2 and CO2 over the incident energy range from 30 to 3000eV are calculated using the additivity rule model at Hartree-...
提出了一种为最小成本生成树 (mcst-) 游戏定义不可约核的新方法,该核是由 Bird 在 1976 年引入的。 Bird 核对应具有有趣的单调性和可加性属性以及每个稳定成本单调... 使用可加性属性获得了伯德核对应的公理化特征。