ceki at qos.ch
Wed Mar 18 19:10:25 CET 2009
The first cron job launched after midnight will trigger rollover. Isn't that the
behavior you are observing?
By the way, for obvious reasons, triggering at midnight cannot happen every 2
> Hi, sorry for popping up an old thread but i don't catch something: shouldn't
> the Logger when new event arrives check the last modification time of the
> log file and if it "is time" roll it over? i have the same configuration in
> servlet and script - rollover at midnight. in servlet everything works just
> fine. but in script, that is run from cron every 2 hours, events are always
> written in the same log. How can i make something, that doesn't run
> continually trigger rollover?
Logback: The reliable, generic, fast and flexible logging framework for Java.
More information about the Logback-user