[logback-user] Time and Size-based rolling policy not working

rfkrocktk rfkrocktk at gmail.com
Thu Apr 8 22:37:18 CEST 2010


Sweet, I have it working now. Thanks so much!


rfkrocktk wrote:
> 
> Ah, I see now! When I grabbed logback from Spring's Ivy repository, I
> assumed I was getting the latest version when I grabbed 0.9.9, but I guess
> 0.9.18 is a later edition :)
> 
> Now I've got it spitting warnings at me and saying that "SLF4J: The
> requested version 1.5.8 by your slf4j binding is not compatible with
> [1.5.5, 1.5.6]." I guess I'll have to find a way to get Spring to get me a
> different SLF4J version...
> 
> 
> Matthias Kretschmar wrote:
>> 
>> Hi Tyler,
>> 
>> I think the time and size based rolling is a relativly new feature. It
>> looks like your logback is too old for using this. Your Jars do not
>> contain the mentioned class
>> ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP. So try updating to
>> the latest logback. I think this would help.
>> 
>> Matthias
>> 
>> 
>> Am 07.04.2010 23:51, schrieb Tyler Kocheran:
>>> I have created a test project to see if I can use logback's size and
>>> time-based rolling policy to roll over to log files as logs get large
>>> and as
>>> time passes. However, I cannot get it to roll over. It instead always
>>> logs
>>> to the file I've specified in the <file> tag.
>>>
>>> I have attached my project's full, ant-buildable source code to show
>>> my code
>>> and to possibly help get the ball rolling on figuring all of this out.
>>> Can
>>> anyone help me get time/size based file rolling working?
>>>
>>> http://old.nabble.com/file/p28171419/logback.zip (This is the Java
>>> project)
>>>
>>>
>>> _______________________________________________
>>> Logback-user mailing list
>>> Logback-user at qos.ch
>>> http://qos.ch/mailman/listinfo/logback-user
>>>   
>> 
>> 
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://qos.ch/mailman/listinfo/logback-user
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Time-and-Size-based-rolling-policy-not-working-tp28171465p28184244.html
Sent from the Logback User mailing list archive at Nabble.com.



More information about the Logback-user mailing list