Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
    threshold="all" debug="false">

    <appender name="filedump" class="org.apache.log4j.FileAppender">
        <param name="file" value="wildcat-dump.log" />
        <param name="append" value="false" />

        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
        </layout>

        <filter class="org.apache.log4j.varia.LevelRangeFilter">
            <param name="levelMin" value="DEBUG" />
            <param name="levelMax" value="FATAL" />
        </filter>

    </appender>

    <appender name="console" class="org.apache.log4j.ConsoleAppender">
        <param name="target" value="System.err" />

        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
        </layout>

        <filter class="org.apache.log4j.varia.LevelRangeFilter">
            <param name="levelMin" value="WARN" />
            <param name="levelMax" value="FATAL" />
        </filter>
    </appender>

    <appender name="lf5" class="org.apache.log4j.lf5.LF5Appender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
        </layout>
    </appender>

    <root>
        <appender-ref ref="console" />
        <!--
            <appender-ref ref="filedump" />
            <appender-ref ref="lf5"/>
        -->
    </root>
</log4j:configuration>
New to GrepCode? Check out our FAQ X