logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hole" <andremailingl...@gmail.com>
Subject Log4j.xml
Date Tue, 07 Aug 2007 16:35:29 GMT
Why this log4j.xml doesn't work??? (I'm running tomcat on Windows)

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
    <appender name="std-out" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1} :
%m%n"/>
        </layout>
    </appender>

    <appender name="debug-out" class="org.apache.log4j.FileAppender">
        <param name="File" value="c:\debug_msgs.log"/>
        <param name="Threshold" value="debug"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1} :
%m%n"/>
        </layout>
    </appender>

    <root>
        <level value="debug"/>
        <appender-ref ref="std-out" />
        <appender-ref ref="debug-out" />
    </root>
</log4j:configuration>

Mime
View raw message