[logback-user] Log Rotation Fails on Windows if Using JNDI
ceki at qos.ch
Thu Nov 3 22:11:10 CET 2011
On 03/11/2011 10:07 PM, ceki wrote:
> On 03/11/2011 10:02 PM, Scott Dudley wrote:
>> So clarify for me...
>> If I have only one set of classes loaded by the servlet engine (Tomcat)
>> and only one logback.xml file shared among all applications, how do I
>> have multiple appenders?
> Sorry, you are right. If logback is loaded only once, then each appender
> mentioned in the config file will be loaded once. No need for prudent
> mode in this case.
Stupid me. ContextJNDISelector will cause logback-classic to be loaded
multiple times. If the logback-classic instances share the same config
file, then you will have multiple appender instances writing to the same
file => prudent mode needs to be enabled.
More information about the Logback-user