日志长度截取

This commit is contained in:
tianliyong 2023-08-31 13:57:35 +08:00
parent 7845eab22d
commit 7cbf807cd6

View File

@ -87,8 +87,7 @@
"traceId":"%X{ctxLogId}", "traceId":"%X{ctxLogId}",
"thread":"%thread", "thread":"%thread",
"class":"%logger{40}", "class":"%logger{40}",
"message":"%message", "message":"%replace(%message){'^(.{3000}).*$', '$1'}",
"m":"#asJson{%message}",
"error_level":"%X{errorLevel}", "error_level":"%X{errorLevel}",
"error_type":"%X{errorType}", "error_type":"%X{errorType}",
"stack_trace":"%exception{20}" "stack_trace":"%exception{20}"