[logback-user] RollingFileAppender Issues

Omar Alrubaiyan rubaiyan at hotmail.com
Sat Jul 24 00:36:26 CEST 2010


I'm not running the logger in prudent mode, there's only one logger object running on one JVM which receives RMI calls. Infact, I did try turning on prudent mode to see if it made a difference and the logger stopped outputting any log messages.Thanks,Omar
----------------------------------------
> Date: Sat, 24 Jul 2010 00:06:24 +0200
> From: ceki at qos.ch
> To: logback-user at qos.ch
> Subject: Re: [logback-user] RollingFileAppender Issues
>
> Hello Omar,
>
> You are perhaps not familiar with the the restrictions that apply to
> RollingFileAppender in prudent mode. These restrictions are documented
> at: http://logback.qos.ch/manual/appenders.html#prudentWithRolling
>
> HTH,
>
>
> On 23/07/2010 8:06 PM, Omar Alrubaiyan wrote:
>>
>> (oops, re-posting with some white space)
>> Hello,
>>
>> I’m trying to use logback for a distributed application thatI’m working on. I have a custom appender that buffers log messages and thensends them over to a central logger via RMI. The central logger collects thelogs and outputs them to a logback logger that uses a RollingFileAppender witha FixedWindowRollingPolicy and a SizeBasedTriggeringPolicy.
>>
>> The problem is when the log file hits the size limit insteadof renaming the file and starting a new one it creates 10 (or whatever the maxindex is for the window) copies of the same file and slows down while failingto properly roll over. This results in (after the first rollover trigger) 1 + max index copies of the same file all of which are over the size limit. This issue does not occur when using the same logback configuration file on a single jvm setup.
>>
>> I’ve tried the following:
>> - Did away with the custom appender on the clientsside and just transmitted raw messages over RMI (i.e. only one central Logback loggeris used). Did not resolve the issue.
>> - Switched to a TimeBasedRollingPolicy, under this policy the archiving seems to work properly but the rollover never occurs (the original log file keeps growing).
>> - Switched the central logger over to log4j, this fixed the issue, although I would rather use logback instead.
>>
>> Any ideas about what could be causing this?
>>
>> Thanks,
>> Omar
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now


More information about the Logback-user mailing list