Skip to content

Commit 7573210

Browse files
authored
Modify Log format to match with the service lens (#227)
1 parent 22af6a0 commit 7573210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample-apps/spark/src/main/resources/log4j2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Configuration status="WARN">
33
<Appenders>
44
<Console name="Console" target="SYSTEM_OUT">
5-
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} %X{AWS-XRAY-TRACE-ID} - %msg%n"/>
5+
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %notEmpty{AWS-XRAY-TRACE-ID: %X{AWS-XRAY-TRACE-ID} }%-5p %m%n"/>
66
</Console>
77
</Appenders>
88
<Loggers>

0 commit comments

Comments
 (0)