From e166e13f90a3b27208dfa02160a586ea5f990e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=95=8F?= Date: Wed, 8 Jan 2025 17:17:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(server):=20=E8=B0=83=E6=95=B4=E6=97=A5?= =?UTF-8?q?=E5=BF=97=EF=BC=8C=E6=8E=A5=E5=85=A5axzo-logger-spring-boot-sta?= =?UTF-8?q?rter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orgmanax-server/pom.xml | 5 + .../src/main/resources/logback-spring.xml | 112 +----------------- 2 files changed, 11 insertions(+), 106 deletions(-) diff --git a/orgmanax-server/pom.xml b/orgmanax-server/pom.xml index b9a05fb..46c00a7 100644 --- a/orgmanax-server/pom.xml +++ b/orgmanax-server/pom.xml @@ -35,6 +35,11 @@ orgmanax-common ${project.version} + + cn.axzo.framework + axzo-logger-spring-boot-starter + 2.0.0-SNAPSHOT + com.alibaba.cloud diff --git a/orgmanax-starter/src/main/resources/logback-spring.xml b/orgmanax-starter/src/main/resources/logback-spring.xml index c0138a3..7a01894 100644 --- a/orgmanax-starter/src/main/resources/logback-spring.xml +++ b/orgmanax-starter/src/main/resources/logback-spring.xml @@ -1,109 +1,9 @@ - - - - - - - - - - - - - - - - - - ${appName} - - - - - ${PATTERN_CONSOLE} - UTF-8 - - - - - - - ${PATTERN_FILE} - - - - ${LOG_PATH}/${LOG_FILE} - - - ${LOGBACK_ROLLINGPOLICY_FILE_NAME_PATTERN:-${LOG_PATH}/${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz} - - ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} - - ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-1GB} - - ${LOGBACK_ROLLINGPOLICY_MAX_HISTORY:-30} - - - - - - - 0 - - 256 - - - - - - - - - @timestamp - yyyy-MM-dd'T'HH:mm:ss.SSSx - GMT+8 - - - - { - "app":"${appName}", - "level":"%level", - "traceId":"%X{ctxLogId}", - "thread":"%thread", - "class":"%logger{40}", - "message":"%replace(%message){'^(.{3000}).*$', '$1'}", - "error_level":"%X{errorLevel}", - "error_type":"%X{errorType}", - "stack_trace":"%exception{20}" - } - - - - - - - - - - + + + + + - - - - - - - - - - - - - - + \ No newline at end of file