[logback-user] Log Rotation Fails on Windows if Using JNDI

Scott Dudley scott at telesoft.com
Thu Nov 3 22:23:11 CET 2011

I'm using FixedWindowRollingPolicy and the doc says that prudent mode 
isn't supported with FixedWindowRollingPolicy 

On 11/03/2011 02:11 PM, ceki wrote:
> 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.

Scott Dudley
Senior Developer

Telesoft Corp. | 1661 E. Camelback Rd., Suite 300 | Phoenix, AZ, 85016

*o:* (602) 308-1115**| *f:* (602) 308-1300 | *w:* www.telesoft.com 

*TEM Edge Blog <http://www.telesoft.com/blog> *|*Twitter 
<http://www.twitter.com/_Telesoft> *|*Facebook

<http://www.facebook.com/pages/Telesoft-Corp/76397971661>Join us at 
Telesoft Connections 2011. Learn more now! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20111103/4e103be5/attachment.html>

More information about the Logback-user mailing list