From 6f52c0babf5139b9837a8a93fa693526aa1666de Mon Sep 17 00:00:00 2001 From: anthonywj Date: Fri, 28 Apr 2023 17:39:38 +0800 Subject: [PATCH] =?UTF-8?q?LOG=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/logback-spring.xml | 202 +++++++++++------- 1 file changed, 128 insertions(+), 74 deletions(-) diff --git a/api-admin/src/main/resources/logback-spring.xml b/api-admin/src/main/resources/logback-spring.xml index d3940ba..41b9c84 100644 --- a/api-admin/src/main/resources/logback-spring.xml +++ b/api-admin/src/main/resources/logback-spring.xml @@ -1,93 +1,147 @@ - - - - - - - - - - - - - - - - - - - - ${CONSOLE_LOG_PATTERN} - UTF-8 + + logback + + + + + + + + %d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n - - - - ERROR - DENY - ACCEPT - + + + + + + + ${log.path}/web_debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + - - d://wmslog/SP_SYNC_SERVER/logs/${LOG_INFO_HOME}//%d{yyyy-MM-dd}_%i.log - - 30 - - - 64 MB + + ${log.path}/web-debug-%d{yyyy-MM-dd}.%i.log + + 40MB + + 15 + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/web_info.log + - %d{yyyy-MM-dd HH:mm:ss:SSS} %-5level [%thread] %logger{50}-%L %msg%n + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/web-info-%d{yyyy-MM-dd}.%i.log + + 40MB + + + 15 + + + + info + ACCEPT + DENY + - - - ERROR - + + + + ${log.path}/web_warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + - - d://wmslog/SP_SYNC_SERVER/logs/${LOG_ERROR_HOME}//%d{yyyy-MM-dd}_%i.log - - 30 - - - 64 MB + ${log.path}/web-warn-%d{yyyy-MM-dd}.%i.log + + 40MB + + 15 + + + warn + ACCEPT + DENY + + + + + + + ${log.path}/web_error.log + - %d{yyyy-MM-dd HH:mm:ss:SSS} %-5level [%thread] %logger{50}-%L %msg%n + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + ${log.path}/web-error-%d{yyyy-MM-dd}.%i.log + + 40MB + + + 15 + + + + ERROR + ACCEPT + DENY + - - - - - - - - - - + + + + + + - \ No newline at end of file + + + + + + + + + + + + + + +