我想在每次启动程序时删除日志文件,而不是追加它.我尝试过使用cleanHistoryOnStart属性,但这似乎没有任何效果.我可能在这里遗漏了一些东西.
如果重要的话,我在Linux上使用Eclipse.
%d{dd.MM.yyyy. HH:mm:ss} %level [%thread] %logger{20} - %msg%n chat.log chat.log.%d{yyyy-MM-dd} true %d{dd.MM.yyyy. HH:mm:ss} %level [%thread] %logger{20} - %msg%n utf-8
SANN3.. 10
在启动时包含在appender中清理日志文件.
否则试试这个
http://veerasundar.com/blog/2009/08/how-to-create-a-new-log-file-for-each-time-the-application-runs/
<param name="Append" value="false" />
在启动时包含在appender中清理日志文件.
否则试试这个
http://veerasundar.com/blog/2009/08/how-to-create-a-new-log-file-for-each-time-the-application-runs/