Skip to content

Instantly share code, notes, and snippets.

@mgius
Created January 23, 2014 23:26
Show Gist options
  • Save mgius/8588935 to your computer and use it in GitHub Desktop.
Save mgius/8588935 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug" strict="true" monitorInterval="5">
<!-- Top level filter applying to Root logger? -->
<!-- <Filter type="ThresholdFilter" level="info" /> -->
<Appenders>
<!-- Log to stdout with a particular log format -->
<Appender type="Console" name="STDOUT" target="SYSTEM_OUT">
<!-- %M - method name, %F - file name (no prefix) -->
<Layout type="PatternLayout" pattern="%d %-5p [%t] %C.%M (%F:%L) - %m%n"/>
</Appender>
<!-- Async logger redirecting to the stdout logger -->
<Appender type="Async" name="ASYNC" includeLocation="true">
<AppenderRef ref="STDOUT"/>
</Appender>
</Appenders>
<Loggers>
<!-- Log all messages from this package (and subpackages) at info level, do NOT pass to the root logger -->
<Logger name="org.apache.http.impl" level="info" additivity="false">
<AppenderRef ref="ASYNC"/>
</Logger>
<!-- log all messages (except those from package above) debug to async appender -->
<Root level="debug">
<AppenderRef ref="ASYNC"/>
</Root>
</Loggers>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment