[logback-user] how to remove old log files in this sifting appender configuration

Andreas Kruthoff andreas.kruthoff at nexustelecom.com
Wed Jul 11 16:30:39 CEST 2012


My %msg contains a field which specifies the hour. I found it convenient
to call MDC.put("hour", timestampHour);

The data within the messages isn't ordered by time, unfortunately, but I
want to save the data in a 'timeseries'-like manner to my output files.
All messages of hour 11 go in one file, 12 into an other, and so on. I
create such a file once per minute.

This email and any attachment may contain confidential information which is intended for use only by the addressee(s) named above. If you received this email by mistake, please notify the sender immediately, and delete the email from your system. You are prohibited from copying, disseminating or otherwise using the email or any attachment.



More information about the Logback-user mailing list