<div dir="ltr">Hi,<div><br></div><div>just noticed the following,</div><div>maybe Yanel should update the sample log4j.xml example with <b>additivity=false</b>:</div><div><br></div><div>For example:</div><div><div><br></div><div>    <logger name="com.yanel" level="info"></div><div>      <appender-ref ref="A1"/></div><div>    </logger></div><div><br></div><div>    <root level="error"></div><div>      <appender-ref ref="A1"/></div><div><!--</div><div>      <appender-ref ref="STDOUT"/></div><div>--></div><div>    </root></div></div><div><br></div><div><br></div><div>With the config above, all error logs coming from com.yanel will be logged twice, because the root logger will send an event to the log4j system, as well as the logger on info level.</div><div><br></div><div>It is recommended to use additivity=false:</div><div><br></div><div><br></div><div><div><div>    <logger name="com.yanel" level="info" additivity="false"></div><div>      <appender-ref ref="A1"/></div><div>    </logger></div><div><br></div><div>    <root level="error"></div><div>      <appender-ref ref="A1"/></div><div><!--</div><div>      <appender-ref ref="STDOUT"/></div><div>--></div><div>    </root></div></div></div><div><br></div><div><br></div><div>this is just a little sidenote on log4j2.</div><div>Cheers, Balz</div></div>