|
|
@@ -1,6 +1,14 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<configuration scan="false" debug="true" >
|
|
|
+
|
|
|
+ <!-- 关闭时的配置 -->
|
|
|
+ <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
|
|
|
+ <resetJUL>true</resetJUL>
|
|
|
+ </contextListener>
|
|
|
+
|
|
|
+ <!-- 禁用关闭钩子 -->
|
|
|
<shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
|
|
|
+
|
|
|
<property name="log.path" value="logs" />
|
|
|
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [traceId:%X{traceId}] [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
|
|
<springProperty scope="context" name="appName" source="spring.application.name" />
|