当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Make last logfile name of logback RollingPolicy stay the same

问题描述:

Say I have any type of rolling policy in logback. But I want the last file name to stay always the same.

For example:

mylog.log <- log where application logs now

mylog_1.log <- previous log

...

So in all configurations I see I have only possibility to make something like:

mylog_1.log <- now it logs here

mylog_2.log <- after it will log there

... and so on

Is there any way to solve my problem?

分享给朋友:
您可能感兴趣的文章:
随机阅读: