[logback-user] Rolling policy with overlapping logs
johndonnelly44 at gmail.com
Tue Nov 13 22:20:53 CET 2012
I need to configure logback to do the following:
Write a log file to a directory, target1/
At 1am each day, move this file to another directory, target2/ (add a
timestamp to the file, not tar'ed, not zip'ed)
A new logfile should begin in target1/ but not from 1am, rather it should
begin from midnight the hour before.
Hence the two logfiles in target1/ and target2/ shall have ovelapping logs
from midnight to 1am each day
Any suggestions to do this with configuration would be appreciated.
Or writing a custom appender is a possibility. I looked at this briefly, but
was caught in a few places by package protected properties without public
Thanks in advance!
View this message in context: http://old.nabble.com/Rolling-policy-with-overlapping-logs-tp34668953p34668953.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user