Skip to content

Commit f625b33

Browse files
authored
Removing LambdaJsonLayout from logging in examples (#1545)
1 parent fb14bcf commit f625b33

File tree

3 files changed

+3
-3
lines changed
  • examples
    • powertools-examples-parameters/src/main/resources
    • powertools-examples-serialization/src/main/resources
  • powertools-tracing/src/test/resources

3 files changed

+3
-3
lines changed

examples/powertools-examples-parameters/src/main/resources/log4j2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2">
33
<Appenders>
44
<Console name="JsonAppender" target="SYSTEM_OUT">
5-
<LambdaJsonLayout compact="true" eventEol="true"/>
5+
<JsonTemplateLayout eventTemplateUri="classpath:LambdaJsonLayout.json" />
66
</Console>
77
</Appenders>
88
<Loggers>

examples/powertools-examples-serialization/src/main/resources/log4j2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2">
33
<Appenders>
44
<Console name="JsonAppender" target="SYSTEM_OUT">
5-
<LambdaJsonLayout compact="true" eventEol="true"/>
5+
<JsonTemplateLayout eventTemplateUri="classpath:LambdaJsonLayout.json" />
66
</Console>
77
</Appenders>
88
<Loggers>

powertools-tracing/src/test/resources/log4j2.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Configuration packages="com.amazonaws.services.lambda.runtime.log4j2">
33
<Appenders>
44
<File name="JsonAppender" fileName="target/logfile.json">
5-
<LambdaJsonLayout compact="true" eventEol="true"/>
5+
<JsonTemplateLayout eventTemplateUri="classpath:LambdaJsonLayout.json" />
66
</File>
77
</Appenders>
88
<Loggers>

0 commit comments

Comments
 (0)