【Spring】logback配置记录

【Spring】logback配置记录

Posted by Azuki on December 8, 2022

~~~xml logback-spring.xml <?xml version=”1.0” encoding=”UTF-8”?>

${springAppName} ${log.colorPattern} INFO ${log.path}/all.%d{yyyy-MM-dd HH}.%i.log.gz ${log.maxFileSize} ${log.totalSizeCap} ${log.maxHistory} ${log.pattern} DEBUG DENY ACCEPT ${log.path}/info/info.%d{yyyy-MM-dd HH}.%i.log.gz ${log.maxFileSize} ${log.totalSizeCap} ${log.maxHistory} ${log.pattern} INFO ACCEPT DENY ${log.path}/error/error.%d{yyyy-MM-dd HH}.%i.log.gz ${log.maxFileSize} ${log.totalSizeCap} ${log.maxHistory} ${log.pattern} ERROR ACCEPT DENY ${log.path}/debug/debug.%d{yyyy-MM-dd HH}.%i.log.gz ${log.maxFileSize} ${log.totalSizeCap} ${log.maxHistory} ${log.pattern} DEBUG ACCEPT DENY

~~~