gging.encoded-logger-output.2.0.0.source-code.log4j2.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of encoded-logger-output Show documentation
Show all versions of encoded-logger-output Show documentation
Wrapper class to sanitise log output and mitigate possible log forging
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="INFO"> <Appenders> <Console name="ConsoleJSONAppender" target="SYSTEM_OUT"> <DwpJsonLayout> <app_name>${sys:app_name}</app_name> <app_version>${sys:app_version}</app_version> </DwpJsonLayout> </Console> </Appenders> <Loggers> <Root level="INFO"> <AppenderRef ref="ConsoleJSONAppender"/> </Root> </Loggers> </Configuration>