|
@ -110,9 +110,10 @@ |
|
|
</encoder> |
|
|
</encoder> |
|
|
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|
|
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|
|
<!-- 过滤的级别 --> |
|
|
<!-- 过滤的级别 --> |
|
|
<level>ERROR,FATAL</level> |
|
|
<level>ERROR</level> |
|
|
<!-- 匹配时的操作:接收(记录) --> |
|
|
<!-- 匹配时的操作:接收(记录) --> |
|
|
<onMatch>ACCEPT</onMatch> |
|
|
<onMatch>ACCEPT</onMatch> |
|
|
|
|
|
<!-- 不匹配时的操作:接收(记录) --> |
|
|
<onMismatch>DENY</onMismatch> |
|
|
<onMismatch>DENY</onMismatch> |
|
|
</filter> |
|
|
</filter> |
|
|
</appender> |
|
|
</appender> |
|
@ -127,6 +128,7 @@ |
|
|
<appender-ref ref="file_error"/> |
|
|
<appender-ref ref="file_error"/> |
|
|
</root> |
|
|
</root> |
|
|
</springProfile> |
|
|
</springProfile> |
|
|
|
|
|
<!-- test环境 --> |
|
|
<springProfile name="test"> |
|
|
<springProfile name="test"> |
|
|
<root level="INFO"> |
|
|
<root level="INFO"> |
|
|
<appender-ref ref="console"/> |
|
|
<appender-ref ref="console"/> |
|
@ -135,6 +137,7 @@ |
|
|
<appender-ref ref="file_error"/> |
|
|
<appender-ref ref="file_error"/> |
|
|
</root> |
|
|
</root> |
|
|
</springProfile> |
|
|
</springProfile> |
|
|
|
|
|
<!-- prod环境 --> |
|
|
<springProfile name="prod"> |
|
|
<springProfile name="prod"> |
|
|
<root level="INFO"> |
|
|
<root level="INFO"> |
|
|
<appender-ref ref="file_info"/> |
|
|
<appender-ref ref="file_info"/> |
|
@ -142,7 +145,7 @@ |
|
|
<appender-ref ref="file_error"/> |
|
|
<appender-ref ref="file_error"/> |
|
|
</root> |
|
|
</root> |
|
|
</springProfile> |
|
|
</springProfile> |
|
|
|
|
|
<!-- 指定第三方日志级别 --> |
|
|
<logger name="org.springframework" level="WARN" /> |
|
|
<logger name="org.springframework" level="WARN" /> |
|
|
<logger name="org.apache" level="INFO" /> |
|
|
<logger name="org.apache" level="INFO" /> |
|
|
<logger name="com.baomidou" level="INFO" /> |
|
|
<logger name="com.baomidou" level="INFO" /> |
|
@ -156,6 +159,5 @@ |
|
|
<logger name="reactor.netty" level="WARN" /> |
|
|
<logger name="reactor.netty" level="WARN" /> |
|
|
<logger name="de.codecentric.boot" level="WARN" /> |
|
|
<logger name="de.codecentric.boot" level="WARN" /> |
|
|
<logger name="com.alibaba" level="WARN" /> |
|
|
<logger name="com.alibaba" level="WARN" /> |
|
|
<logger name="org.quartz" level="WARN" /> |
|
|
|
|
|
|
|
|
|
|
|
</configuration> |
|
|
</configuration> |