[logback-user] problems with TimeBasedRollingPolicy

Alex Vb i8c.alex at gmail.com
Fri Jul 1 10:38:55 CEST 2011


Good to know :) Just out of curiosity, how is this accomplished? Do you look
at the created/updated timestamp? Do you look in the log file for dates? Or
another method?

On 1 July 2011 09:36, Ceki Gülcü <ceki at qos.ch> wrote:

> On 01/07/2011 9:08 AM, Alex Vb wrote:
>
>> I may have missed something but is there a specific reason you can't use
>> the date in the filename itself?
>>
>> My only concern would be what happens if you don't log for a day, the
>> first log will trigger a roll but the rolled file may be dated
>> incorrectly? Anyway if that is the case you can use prudent (or
>> something equivalent) which doesn't actually rename the files but writes
>> to the actual target file with date and all.
>>
>
> The file will be dated correctly even it it is rolled over in the next day.
>
> --
> Ceki
>
> ______________________________**_________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/**listinfo/logback-user<http://qos.ch/mailman/listinfo/logback-user>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110701/c16328b4/attachment.html>


More information about the Logback-user mailing list