|
|
|
@ -6,7 +6,6 @@
|
|
|
|
|
<Property name="log.pattern">%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n</Property>
|
|
|
|
|
</Properties>
|
|
|
|
|
|
|
|
|
|
<!-- 日志输出器 -->
|
|
|
|
|
<Appenders>
|
|
|
|
|
<Console name="console" target="SYSTEM_OUT">
|
|
|
|
|
<PatternLayout>
|
|
|
|
@ -14,8 +13,22 @@
|
|
|
|
|
</PatternLayout>
|
|
|
|
|
</Console>
|
|
|
|
|
|
|
|
|
|
<RollingFile name="file_info"
|
|
|
|
|
fileName="${log.path}/mes-info.log"
|
|
|
|
|
<RollingFile name="optimize" fileName="${log.path}/mes-optimize.log"
|
|
|
|
|
filePattern="${log.path}/$${date:yyyy-MM}/mes-optimize.%d{yyyy-MM-dd}-%i.log">
|
|
|
|
|
<Filters>
|
|
|
|
|
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
|
|
|
|
|
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
|
|
</Filters>
|
|
|
|
|
<PatternLayout>
|
|
|
|
|
<pattern>${log.pattern}</pattern>
|
|
|
|
|
</PatternLayout>
|
|
|
|
|
<Policies>
|
|
|
|
|
<TimeBasedTriggeringPolicy />
|
|
|
|
|
<SizeBasedTriggeringPolicy size="10MB"/>
|
|
|
|
|
</Policies>
|
|
|
|
|
</RollingFile>
|
|
|
|
|
|
|
|
|
|
<RollingFile name="file_info" fileName="${log.path}/mes-info.log"
|
|
|
|
|
filePattern="${log.path}/$${date:yyyy-MM}/mes-info.%d{yyyy-MM-dd}-%i.log">
|
|
|
|
|
<Filters>
|
|
|
|
|
<ThresholdFilter level="error" onMatch="DENY" onMismatch="NEUTRAL" />
|
|
|
|
@ -30,8 +43,7 @@
|
|
|
|
|
</Policies>
|
|
|
|
|
</RollingFile>
|
|
|
|
|
|
|
|
|
|
<RollingFile name="file_error"
|
|
|
|
|
fileName="${log.path}/mes-error.log"
|
|
|
|
|
<RollingFile name="file_error" fileName="${log.path}/mes-error.log"
|
|
|
|
|
filePattern="${log.path}/$${date:yyyy-MM}/mes-error.%d{yyyy-MM-dd}-%i.log">
|
|
|
|
|
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
|
|
<PatternLayout>
|
|
|
|
@ -44,12 +56,14 @@
|
|
|
|
|
</RollingFile>
|
|
|
|
|
</Appenders>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Loggers>
|
|
|
|
|
<logger name="info" level="debug">
|
|
|
|
|
<logger name="optimize" level="debug">
|
|
|
|
|
<AppenderRef ref="optimize"/>
|
|
|
|
|
</logger>
|
|
|
|
|
<logger name="com.foreverwin" level="debug">
|
|
|
|
|
<AppenderRef ref="file_info"/>
|
|
|
|
|
</logger>
|
|
|
|
|
<Root level="error">
|
|
|
|
|
<Root level="info">
|
|
|
|
|
<AppenderRef ref="console"/>
|
|
|
|
|
<AppenderRef ref="file_error"/>
|
|
|
|
|
</Root>
|
|
|
|
|