1 个回答
新手上路,请多包涵

springboot 默认使用的是logback 文件时长需要单独写logback.xml文件
appender-rollingPolicy里有MaxHistory属性就是保存文件时长
image.png
上图是官方说明

推荐问题