From 7cbf807cd65a254a6adaaf83174278abe3db9d73 Mon Sep 17 00:00:00 2001 From: tianliyong Date: Thu, 31 Aug 2023 13:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=95=BF=E5=BA=A6=E6=88=AA?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/logback/logback-axzo.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/axzo-logger-spring-boot-starter/src/main/resources/logback/logback-axzo.xml b/axzo-logger-spring-boot-starter/src/main/resources/logback/logback-axzo.xml index 86f2b50..d7e25a3 100644 --- a/axzo-logger-spring-boot-starter/src/main/resources/logback/logback-axzo.xml +++ b/axzo-logger-spring-boot-starter/src/main/resources/logback/logback-axzo.xml @@ -87,8 +87,7 @@ "traceId":"%X{ctxLogId}", "thread":"%thread", "class":"%logger{40}", - "message":"%message", - "m":"#asJson{%message}", + "message":"%replace(%message){'^(.{3000}).*$', '$1'}", "error_level":"%X{errorLevel}", "error_type":"%X{errorType}", "stack_trace":"%exception{20}"