How to create new log file for each application run

后端 未结 4 955
走了就别回头了
走了就别回头了 2020-12-29 23:55

As the title implies how can I create a new log file for each application run ? I know how to do it for minute/hour/etc. but not for app. run

There is what I have fo

4条回答
  •  甜味超标
    2020-12-30 00:37

    archiveOldFileOnStartup="true" archiveNumbering="Rolling" deleteOldFileOnStartup="true"

    Will archive the existing file and delete it. So you always end up with a new file.

提交回复
热议问题