Excellent!
Thanks Jake. That did it. I changed the <loggerto a <rootand everything
worked great.
Thanks!
Message
From: Jacob Kjome [mailto:hoju (AT) visi (DOT) com]
Sent: Wednesday, June 14, 2006 4:50 PM
To: Log4J Users List
Subject: RE: setting up log4j
Try defining the <rootlogger instead of, or in addition to, your logger
definition below. I imagine you'll see output from Struts classes in the
<rootlogger if you define it to log at the DEBUG level.
Jake
Quoting Darren Hall <dhall (AT) utrs (DOT) com>:
, for those following this thread, I've trashed my old log4j.xml. I went
ahead and created a new (and much simpler) log4j.xml file. Using this new
file, I now see the following log file created 'C:\Program Files\Apache
Group\Tomcat 5.5\logs\uwaf-debug.log'.
So progress!
However, the log file contains nothing. None of my info or debug
statements
were printed to the file. It's blank. What did I do wrong now?
Any ideas?
Thanks,
Darren
(log4j.xml)
<?xml version="1.0" encoding="UTF-8" ?>
<!DCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="">
<appender name="DEBUG" class="org.apache.log4j.FileAppender">
<param name="File" value="logs/uwaf-debug.log" />
<param name="Threshold" value="DEBUG" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{IS} %-5p %c - %m%n"/>
</layout>
</appender>
<logger name="com.uwaf">
<level value="debug"/>
<appender-ref ref="DEBUG"/>
</logger>
</log4j:configuration>
>
>
>
>
To unsubscribe, e-mail: log4j-user-unsubscribe (AT) logging (DOT) apache.org
For additional commands, e-mail: log4j-user-help (AT) logging (DOT) apache.org
To unsubscribe, e-mail: log4j-user-unsubscribe (AT) logging (DOT) apache.org
For additional commands, e-mail: log4j-user-help (AT) logging (DOT) apache.org
To unsubscribe, e-mail: log4j-user-unsubscribe (AT) logging (DOT) apache.org
For additional commands, e-mail: log4j-user-help (AT) logging (DOT) apache.org