|
@@ -0,0 +1,61 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+
|
|
|
+
|
|
|
+<Configuration status="off" monitorInterval="600">
|
|
|
+ <Properties>
|
|
|
+ <property name="LOG_HOME">./logs/aizuda-boot2</property>
|
|
|
+ <property name="ERROR_LOG_FILE_NAME">error</property>
|
|
|
+ <property name="INFO_LOG_FILE_NAME">info</property>
|
|
|
+ <Property name="PATTERN">[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} - (%F:%L) - %m%n</Property>
|
|
|
+ </Properties>
|
|
|
+ <Appenders>
|
|
|
+
|
|
|
+ <Console name="Console" target="SYSTEM_OUT">
|
|
|
+
|
|
|
+ <Filters>
|
|
|
+ <ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
+ </Filters>
|
|
|
+
|
|
|
+ <PatternLayout pattern="${PATTERN}"/>
|
|
|
+ </Console>
|
|
|
+
|
|
|
+ <RollingRandomAccessFile name="ErrorLog" fileName="${LOG_HOME}/${ERROR_LOG_FILE_NAME}.log"
|
|
|
+ filePattern="${LOG_HOME}/${ERROR_LOG_FILE_NAME}.log.%d{yyyy-MM-dd}.gz">
|
|
|
+ <PatternLayout pattern="${PATTERN}"/>
|
|
|
+ <Filters>
|
|
|
+ <ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
+ </Filters>
|
|
|
+ <Policies>
|
|
|
+ <TimeBasedTriggeringPolicy/>
|
|
|
+ <SizeBasedTriggeringPolicy size="128MB"/>
|
|
|
+ </Policies>
|
|
|
+ <DefaultRolloverStrategy max="30"/>
|
|
|
+ </RollingRandomAccessFile>
|
|
|
+ <RollingRandomAccessFile name="InfoLog" fileName="${LOG_HOME}/${INFO_LOG_FILE_NAME}.log"
|
|
|
+ filePattern="${LOG_HOME}/${INFO_LOG_FILE_NAME}.log.%d{yyyy-MM-dd}.gz">
|
|
|
+ <PatternLayout pattern="${PATTERN}"/>
|
|
|
+ <Filters>
|
|
|
+ <ThresholdFilter level="debug" onMatch="ACCEPT" onMismatch="DENY"/>
|
|
|
+ </Filters>
|
|
|
+ <Policies>
|
|
|
+ <TimeBasedTriggeringPolicy/>
|
|
|
+ <SizeBasedTriggeringPolicy size="128MB"/>
|
|
|
+ </Policies>
|
|
|
+ <DefaultRolloverStrategy max="30"/>
|
|
|
+ </RollingRandomAccessFile>
|
|
|
+ </Appenders>
|
|
|
+ <Loggers>
|
|
|
+
|
|
|
+ <logger name="com.aizuda" level="error" additivity="false">
|
|
|
+ <appender-ref ref="databaseAppender" level="error"/>
|
|
|
+ </logger>
|
|
|
+ -->
|
|
|
+ <AsyncLogger name="org.apache.ibatis" level="error" includeLocation="true"/>
|
|
|
+ <AsyncLogger name="org.springframework.web" level="error" includeLocation="true"/>
|
|
|
+ <AsyncRoot level="error" includeLocation="true">
|
|
|
+ <AppenderRef ref="Console"/>
|
|
|
+ <AppenderRef ref="InfoLog"/>
|
|
|
+ <AppenderRef ref="ErrorLog"/>
|
|
|
+ </AsyncRoot>
|
|
|
+ </Loggers>
|
|
|
+</Configuration>
|