public class AutoRollingLogFileJob extends Object
| Constructor and Description |
|---|
AutoRollingLogFileJob() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAndRollFile()
每天凌晨检查日志文件,是否已经自动滚动了新的文件;logback的日志滚动策略,只有在有日志输出的时候,才会去检查是否需要滚动,如果第二天日志没有输出,就不会生成新的文件
|
Copyright © 2018–2021. All rights reserved.