[logback-user] problems with TimeBasedRollingPolicy
ceki at qos.ch
Fri Jul 1 09:36:40 CEST 2011
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.
More information about the Logback-user