Fix: log4j example: set logger level to prevent unexpected level inheritance
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 26 May 2016 22:05:12 +0000 (18:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 May 2016 22:13:38 +0000 (18:13 -0400)
commit3d0d3c94e65eaf1b7af3be30f3f5906d18f260a5
treeaf2a518fd95c0281de52c8b62a41c4d1bacfb3be
parenta32e282d91b5b82fcc5cde936175bbb268ee9e0c
Fix: log4j example: set logger level to prevent unexpected level inheritance

BSF or other jars can ship with log4j.properties file embedded. This
causes problem when launching application with a general class path (e.g
/usr/share/java/*) since log4j will look for a property file in all
loaded jars. If any contains directive for the root logger it will
affect any logger with no level who are directly under the root logger.
This could result in an unexpected behaviour (e.g no events triggered
etc.).

Link: https://issues.apache.org/jira/browse/BSF-24
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/java-log4j/Hello.java
This page took 0.024712 seconds and 4 git commands to generate.