| | |
| | | <!-- 启动服务时,是否清理历史日志,一般不建议清理 --> |
| | | <cleanHistoryOnStart>${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false}</cleanHistoryOnStart> |
| | | <!-- 日志文件,到达多少容量,进行滚动 --> |
| | | <maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB}</maxFileSize> |
| | | <maxFileSize>${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-100MB}</maxFileSize> |
| | | <!-- 日志文件的总大小,0 表示不限制 --> |
| | | <totalSizeCap>${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0}</totalSizeCap> |
| | | <!-- 日志文件的保留天数 --> |
| | | <maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30}</maxHistory> |
| | | <maxHistory>${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-7}</maxHistory> |
| | | </rollingPolicy> |
| | | </appender> |
| | | <!-- 异步写入日志,提升性能 --> |