[logback-user] Delete log file

Gordon Sims gordon at itasoftware.com
Wed Nov 17 17:10:15 CET 2010


pwillems66 at zonnet.nl wrote:
> Maybe someone else have a (different) solution?

FileAppender.setPrudent() looks promising for this purpose.  However, 
using the example from PrudentTimeBasedRolling.xml, when I rm the file 
it is not recreated on the next log statement.  Also, if it did work, it 
doesn't support your file appender, but maybe it is ok to change that.

http://logback.qos.ch/codes.html#tbr_fnp_prudent_unsupported says,
> prudent mode is not allowed in conjuction with a FixedWindowRollingPolicy. 

-Gordon


More information about the Logback-user mailing list