[logback-user] Log rollover: activate based on size but keep "creation date" in file name?

Yura Levandovskyy liova_89 at yahoo.ca
Fri Jun 8 20:12:25 CEST 2012


I'm trying to configure a naming scheme that would result in longs in the format of %d{yyyy-MM-dd-HHmm}.%i.log, however the time should indicate log creation time, not current time.

New log is created in 2 situations: on application launch <rolloverOnStart>true</rolloverOnStart> or <maxFileSize>1MB</maxFileSize>.

However, because of the naming format, the log gets put in a different location every minute. Is there a way to only set the log name on creation and then write to it until next rollover?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120608/2be4281d/attachment.html>

More information about the Logback-user mailing list