Spring boot:logback文件配置
2021-07-15 13:07
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} : %msg%n
ERROR
DENY
ACCEPT
${FILE_LOG_PATTERN:-%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } -- %-40.40logger{39} : %m%n}}
D:/log/info.%d.log
ERROR
%msg%n
D:/log/error.%d.log
详情文档参考:https://wenku.baidu.com/view/71a056eb0975f46527d3e138.html