Skip to content

Instantly share code, notes, and snippets.

@bmchild
Created November 8, 2011 21:16
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 bmchild/1349259 to your computer and use it in GitHub Desktop.
Save bmchild/1349259 to your computer and use it in GitHub Desktop.
log4j base
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<!-- Pattern to output the caller's file name and line number -->
<param name="ConversionPattern" value="%d{ISO8601} [%p] %m [(%M)%c]%n" />
</layout>
</appender>
<!-- Logger Elements -->
<logger name="org.apache.jcs">
<level value="ERROR" />
</logger>
<root>
<priority value="INFO" />
<appender-ref ref="stdout" />
</root>
</log4j:configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment