Menu

#93 Log4j Configuration included in joost.jar is too aggressive

Joost
open
nobody
5
2011-05-13
2011-05-13
jasa
No

The log4j.properties file defines the root logger for output to the console on the warn level. This causes other application logging to be directed to the console too, which is not that desirable. I have noticed this behaviour on both JBoss and WebLogic application servers.

It would be nicer to have a version of joost that doesn't use the root logger for its logging (configuration).
I have removed the offending line from the included log4j.properties file to fix this issue, but I would feel more comfortable with an official version of the library.

Maybe it is also a good idea to use an alternate naming scheme for the property file to avoid automatic loading of the included property file in context of an application loading chain. This way you can make sure that there is no impact on other libraries or applications who include the joost library.

Much appreciated!

Discussion


Log in to post a comment.