Skip to content

Instantly share code, notes, and snippets.

@kevinhooke
Created October 4, 2014 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/c73ee974a706491265d9 to your computer and use it in GitHub Desktop.
Save kevinhooke/c73ee974a706491265d9 to your computer and use it in GitHub Desktop.
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