[logback-user] Logback with Tomcat and multiple web applications

Ryan Cornia rcornia at myriad.com
Wed Feb 11 19:28:37 CET 2009

> I didn't quite understand why you needed ContextJNDISelector.

I would like to have all web apps use the same configuration file that is
kept outside of the war. Maybe ContextJNDISelector isn't what is needed?

Would I use this technique
(http://logback.qos.ch/faq.html#sharedConfiguration) in the listener for the
web application?

Instead of :

context.putProperty("application-name", NAME_OF_CURRENT_APPLICATION);

I would just set the MDC?

More information about the Logback-user mailing list