Created
October 17, 2012 20:51
-
-
Save itzg/3908097 to your computer and use it in GitHub Desktop.
Good starter log4j.xml file for use with Spring apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Target" value="System.out" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%-5p %c - %m%n" /> | |
</layout> | |
</appender> | |
<category name="org.springframework.context"> | |
<priority value="warn"/> | |
</category> | |
<category name="org.springframework.beans"> | |
<priority value="warn"/> | |
</category> | |
<root> | |
<priority value="info" /> | |
<appender-ref ref="console" /> | |
</root> | |
</log4j:configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment