Created
April 16, 2013 10:52
-
-
Save sureshnath/5395039 to your computer and use it in GitHub Desktop.
log4j xml EnhancedPatternLayout package limited
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 PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<!-- Appenders --> | |
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | |
<param name="Target" value="System.out" /> | |
<layout class="org.apache.log4j.EnhancedPatternLayout"> | |
<param name="ConversionPattern" value="%-5p: %c{1.} - %.1000m%n" /> | |
</layout> | |
</appender> | |
<!-- myapp Loggers --> | |
<logger name="com"> | |
<level value="debug" /> | |
</logger> | |
<!-- 3rdparty Loggers --> | |
<logger name="org.springframework"> | |
<level value="info" /> | |
</logger> | |
<!-- Root Logger --> | |
<root> | |
<priority value="warn" /> | |
<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