
Hi Robert, I had not considered overwriting the logging.properties file. It's a great idea. I'll document it shortly. Having said that, including logging.properties in jul-to-slf4j.jar would be an indefensible case of "do as say not as i do" [1]. Our credibility aside, does jul-to-slf4j.jar have the mandate to override j.u.l. configuration? I don't think jul-to-slf4j.jar has any such mandate... Cheers, [1] http://www.slf4j.org/faq.html#configure_logging -- Ceki http://twitter.com/#!/ceki On 07.05.2012 22:49, Robert Elliot wrote:
Hi all,
Whenever I create an app where I want to redirect java.util.logging to SLF4J I have to remember to do two things - add jul-to-slf4j to the class path and add a logging.properties file with the following format:
handlers = org.slf4j.bridge.SLF4JBridgeHandler
to the class path.
It suddenly occurred to me that it might be simpler just to have that logging.properties file in jul-to-slf4j. Then it would be job done in one go.
Presumably if you;re including jul-to-slf4j on the class path then you don't want to configure any other logging…
Any thoughts?
Rob