xml version = "1.0" encoding = "UTF-8" ?>
< configuration status = "debug" >
< appenders > < Console name = "Console" target = "SYSTEM_OUT" >
< ThresholdFilter level = "info" onMatch = "ACCEPT" onMismatch = "DENY" /> < PatternLayout pattern = "[%d{HH:mm:ss.SSS}] %-5level %class{36} %L %M - %msg%xEx%n" />
Console >
< RollingFile name = "RollingFileDebug" fileName = "./logs/debug.log" filePattern = "logs/$${date:yyyy-MM}/debug-%d{yyyy-MM-dd}-%i.log.gz" >
< Filters > < ThresholdFilter level = "DEBUG" /> < ThresholdFilter level = "INFO" onMatch = "DENY" onMismatch = "NEUTRAL" />
Filters >
< PatternLayout pattern = "[%d{yyyy-MM-dd HH:mm:ss}] %-5level %class{36} %L %M - %msg%xEx%n" />
< Policies >
< TimeBasedTriggeringPolicy interval = "1" modulate = "true" />
< SizeBasedTriggeringPolicy size = "200 MB" />
Policies >
RollingFile >
< RollingFile name = "RollingFileInfo" fileName = "./logs/info.log" filePattern = "logs/$${date:yyyy-MM}/info-%d{yyyy-MM-dd}-%i.log.gz" > < Filters >
< ThresholdFilter level = "INFO" /> < ThresholdFilter level = "WARN" onMatch = "DENY" onMismatch = "NEUTRAL" />
Filters > < PatternLayout pattern = "[%d{yyyy-MM-dd HH:mm:ss}] %-5level %class{36} %L %M - %msg%xEx%n" /> < Policies >
< TimeBasedTriggeringPolicy interval = "1" modulate = "true" />
< SizeBasedTriggeringPolicy size = "200 MB" />
Policies >
RollingFile >
< RollingFile name = "RollingFileWarn" fileName = "./logs/warn.log" filePattern = "logs/$${date:yyyy-MM}/warn-%d{yyyy-MM-dd}-%i.log.gz" > < Filters > < ThresholdFilter level = "WARN" /> < ThresholdFilter level = "ERROR" onMatch = "DENY" onMismatch = "NEUTRAL" />
Filters > < PatternLayout pattern = "[%d{yyyy-MM-dd HH:mm:ss}] %-5level %class{36} %L %M - %msg%xEx%n" /> < Policies >
< TimeBasedTriggeringPolicy interval = "1" modulate = "true" />
< SizeBasedTriggeringPolicy size = "200 MB" />
Policies >
RollingFile >
< RollingFile name = "RollingFileError" fileName = "./logs/error.log" filePattern = "logs/$${date:yyyy-MM}/error-%d{yyyy-MM-dd}-%i.log.gz" > < ThresholdFilter level = "ERROR" /> < PatternLayout pattern = "[%d{yyyy-MM-dd HH:mm:ss}] %-5level %class{36} %L %M - %msg%xEx%n" /> < Policies >
< TimeBasedTriggeringPolicy interval = "1" modulate = "true" />
< SizeBasedTriggeringPolicy size = "200 MB" />
Policies >
RollingFile >
appenders > < loggers >
< root level = "all" > < appender-ref ref = "Console" level = "info" /> < appender-ref ref = "RollingFileInfo" level = "info" /> < appender-ref ref = "RollingFileWarn" level = "warn" /> < appender-ref ref = "RollingFileError" level = "error" /> < appender-ref ref = "RollingFileDebug" level = "debug" />
root >
< Logger name = "org.springframework" level = "INFO" /> < Logger name = "org.mybatis" level = "debug" /> < Logger name = "org.apache.catalina.startup.DigesterFactory" level = "error" /> < Logger name = "org.apache.catalina.util.LifecycleBase" level = "error" /> < Logger name = "org.apache.coyote.http11.Http11NioProtocol" level = "warn" /> < logger name = "org.apache.sshd.common.util.SecurityUtils" level = "warn" /> < Logger name = "org.apache.tomcat.util.net.NioSelectorPool" level = "warn" /> < Logger name = "org.crsh.plugin" level = "warn" /> < logger name = "org.crsh.ssh" level = "warn" /> < Logger name = "org.eclipse.jetty.util.component.AbstractLifeCycle" level = "error" /> < Logger name = "org.hibernate.validator.internal.util.Version" level = "warn" /> < logger name = "org.springframework.boot.actuate.autoconfigure.CrshAutoConfiguration" level = "warn" /> < logger name = "org.springframework.boot.actuate.endpoint.jmx" level = "warn" /> < logger name = "org.thymeleaf" level = "warn" />
loggers >
configuration > |