Skip to content

Commit

Permalink
create log config
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-nhs committed Jan 17, 2025
1 parent 18ce64e commit a67f4dc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="JsonAppender" target="SYSTEM_OUT">
<JsonTemplateLayout eventTemplateUri="classpath:LambdaJsonLayout.json" />
</Console>
</Appenders>
<Loggers>
<Logger name="JsonLogger" level="${env:LOG_LEVEL}" additivity="false">
<AppenderRef ref="JsonAppender" />
</Logger>
<Root level="info">
<AppenderRef ref="JsonAppender" />
</Root>
</Loggers>
</Configuration>

0 comments on commit a67f4dc

Please sign in to comment.