|
@@ -5,8 +5,7 @@
|
|
|
<include
|
|
<include
|
|
|
resource="org/springframework/boot/logging/logback/defaults.xml" />
|
|
resource="org/springframework/boot/logging/logback/defaults.xml" />
|
|
|
|
|
|
|
|
- <property name="LOG_HOME" value="logs" />
|
|
|
|
|
- <property name="log.env" value="@profile.active@" />
|
|
|
|
|
|
|
+ <property name="LOG_HOME" value="/data-disk/zd_service/zd-logs/@artifactId@" />
|
|
|
|
|
|
|
|
<property name="TRACE_LOG_PATTERN"
|
|
<property name="TRACE_LOG_PATTERN"
|
|
|
value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr([%tid]){faint} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}" />
|
|
value="%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr([%tid]){faint} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}" />
|
|
@@ -122,45 +121,10 @@
|
|
|
<appender-ref ref="ERROR_SQL_FILE" />
|
|
<appender-ref ref="ERROR_SQL_FILE" />
|
|
|
</logger>
|
|
</logger>
|
|
|
|
|
|
|
|
- <if
|
|
|
|
|
- condition='p("log.env").equals("dev") || p("log.env").equals("local")'>
|
|
|
|
|
- <then>
|
|
|
|
|
- <root level="INFO">
|
|
|
|
|
- <appender-ref ref="STDOUT" />
|
|
|
|
|
- <appender-ref ref="FILE_ASYNC" />
|
|
|
|
|
- </root>
|
|
|
|
|
- </then>
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if condition='p("log.env").equals("beta")'>
|
|
|
|
|
- <then>
|
|
|
|
|
- <root level="INFO">
|
|
|
|
|
- <appender-ref ref="STDOUT" />
|
|
|
|
|
- <appender-ref ref="FILE_ASYNC" />
|
|
|
|
|
- <appender-ref ref="ERROR_FILE" />
|
|
|
|
|
- <!-- <appender-ref ref="EMAIL"/> -->
|
|
|
|
|
- </root>
|
|
|
|
|
- </then>
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if condition='p("log.env").equals("pre")'>
|
|
|
|
|
- <then>
|
|
|
|
|
- <root level="INFO">
|
|
|
|
|
- <appender-ref ref="FILE_ASYNC" />
|
|
|
|
|
- <appender-ref ref="ERROR_FILE" />
|
|
|
|
|
- <!--<appender-ref ref="EMAIL"/> -->
|
|
|
|
|
- </root>
|
|
|
|
|
- </then>
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if condition='p("log.env").equals("prod")'>
|
|
|
|
|
- <then>
|
|
|
|
|
- <root level="INFO">
|
|
|
|
|
- <appender-ref ref="FILE_ASYNC" />
|
|
|
|
|
- <appender-ref ref="ERROR_FILE" />
|
|
|
|
|
- <!--<appender-ref ref="EMAIL"/> -->
|
|
|
|
|
- </root>
|
|
|
|
|
- </then>
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+ <root level="INFO">
|
|
|
|
|
+ <appender-ref ref="STDOUT" />
|
|
|
|
|
+ <appender-ref ref="FILE_ASYNC" />
|
|
|
|
|
+ <appender-ref ref="ERROR_FILE" />
|
|
|
|
|
+ </root>
|
|
|
|
|
|
|
|
</configuration>
|
|
</configuration>
|