|
@@ -2,13 +2,14 @@
|
|
|
<Configuration status="info">
|
|
|
<Properties>
|
|
|
<Property name="baseDir" value="./log"/>
|
|
|
+ <Property name="pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight{%6p} %style{%5pid}{bright,magenta} --- [%15.15t] %style{%-40.40logger{39}}{bright,cyan} : %m%n"/>
|
|
|
</Properties>
|
|
|
|
|
|
<Appenders>
|
|
|
<Console name="Console" target="SYSTEM_OUT">
|
|
|
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch) -->
|
|
|
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
- <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight{%6p} %style{%5pid}{bright,magenta} --- [%15.15t] %style{%-40.40logger{39}}{bright,cyan} : %m%n"/>
|
|
|
+ <PatternLayout pattern="${pattern}"/>
|
|
|
</Console>
|
|
|
|
|
|
<!--debug级别日志文件输出-->
|