logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilfong, Paul" <paul.wilf...@ngc.com>
Subject RE: Log4j.xml
Date Mon, 13 Aug 2007 15:04:35 GMT
Are you getting any error messages that you could pass on?
 
A couple of possibilities -
1.  I find that using backslash doesn't work for me.  You might try
c:/debug_msgs.log.
2.  Also, I have WXP, and it doesn't let me write files directly to the
C drive like W2000 used to.  (This might be a local thing, maybe a setup
from my company's IT.)  So instead I make a folder and write the files
there:  c:/foo/debug_msgs.log.
 
 

________________________________

From: Andrew Hole [mailto:andremailinglist@gmail.com] 
Sent: Tuesday, August 07, 2007 9:35 AM
To: log4cxx-user
Subject: Log4j.xml


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