smallchill 5 лет назад
Родитель
Сommit
e9498cd224

+ 1 - 0
src/main/resources/log/logback-dev.xml

@@ -2,6 +2,7 @@
 <configuration scan="true" scanPeriod="60 seconds">
     <!-- 自定义参数监听 -->
     <contextListener class="org.springblade.core.log.listener.LoggerStartupListener"/>
+    <springProperty scope="context" name="springAppName" source="spring.application.name"/>
 
     <!-- 彩色日志依赖的渲染类 -->
     <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>

+ 1 - 0
src/main/resources/log/logback-prod.xml

@@ -2,6 +2,7 @@
 <configuration scan="true" scanPeriod="60 seconds">
     <!-- 自定义参数监听 -->
     <contextListener class="org.springblade.core.log.listener.LoggerStartupListener"/>
+    <springProperty scope="context" name="springAppName" source="spring.application.name"/>
 
     <!-- 彩色日志依赖的渲染类 -->
     <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>

+ 1 - 0
src/main/resources/log/logback-test.xml

@@ -2,6 +2,7 @@
 <configuration scan="true" scanPeriod="60 seconds">
     <!-- 自定义参数监听 -->
     <contextListener class="org.springblade.core.log.listener.LoggerStartupListener"/>
+    <springProperty scope="context" name="springAppName" source="spring.application.name"/>
 
     <!-- 彩色日志依赖的渲染类 -->
     <conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>