Skip to content

Instantly share code, notes, and snippets.

@sureshnath
Created April 16, 2013 10:52
Show Gist options
  • Save sureshnath/5395039 to your computer and use it in GitHub Desktop.
Save sureshnath/5395039 to your computer and use it in GitHub Desktop.
log4j xml EnhancedPatternLayout package limited
<?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