Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Log4j 2 basic xml config
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%C - %m%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="example.logger.name" level="debug"/>
<Root level="debug">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment