File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
backend/src/main/resources Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 77
88 <springProperty scope =" context" name =" LOG_LEVEL" source =" logging.level.root" defaultValue =" INFO" />
99
10+ <!-- 콘솔: traceId 앞 8자만 출력 (가독성 우선) -->
1011 <property name =" CONSOLE_LOG_PATTERN"
11- value =" [%d{yyyy-MM-dd HH:mm:ss}] [%clr(%-5level)] %clr(---){faint} %clr([%15.15thread]){faint} %clr(%-40.40logger{36}){cyan} %clr(:){faint} %msg %clr(%marker) %n" />
12+ value =" [%d{yyyy-MM-dd HH:mm:ss}] [%clr(%-5level)] [%.8X{traceId:-}] %clr(---){faint} %clr([%15.15thread]){faint} %clr(%-40.40logger{36}){cyan} %clr(:){faint} %msg %clr(%marker) %n" />
1213
14+ <!-- 파일: traceId/spanId 전체 출력 (검색·추적용) -->
1315 <property name =" FILE_LOG_PATTERN"
14- value =" [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%level] --- [%thread] %logger{36} : %msg%n" />
16+ value =" [%d{yyyy-MM-dd HH:mm:ss.SSS}] [%level] [%X{traceId:-},%X{spanId:-}] --- [%thread] %logger{36} : %msg%n" />
1517
1618
1719 <appender name =" CONSOLE" class =" ch.qos.logback.core.ConsoleAppender" >
You can’t perform that action at this time.
0 commit comments