[logback-user] recreate deleted file

Chad La Joie chad.lajoie at switch.ch
Thu Jan 10 07:18:17 CET 2008


Will, one way to get around the issue would be to set the roll over 
policy to something small enough that it will rotate the active log in a 
manner timely enough for you to move them around as needed.  Not a fix 
for the underlying problem, but might hold you over.

Will Norris wrote:
> Are any of the logback FileAppenders able to recreate their logfile if 
> it goes away for whatever reason.  In my testing, if I delete the log 
> file or move it to another location, logback doesn't log any futher 
> until I restart my application.  I would like for it to recreate the 
> file if it is no longer present.  Is that possible?
> 
> Thanks,
> Will
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user

-- 
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad.lajoie at switch.ch, http://www.switch.ch




More information about the Logback-user mailing list