Try defining the <root> logger instead of, or in addition to, your logger
definition below.  I imagine you'll see output from Struts classes in the
<root> logger if you define it to log at the DEBUG level.

Jake

Quoting Darren Hall <[EMAIL PROTECTED]>:

> Ok, 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" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/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{ISO8601} %-5p %c - %m%n"/>
>     </layout>
>   </appender>
>
>   <logger name="com.uwaf">
>     <level value="debug"/>
>     <appender-ref ref="DEBUG"/>
>   </logger>
>
> </log4j:configuration>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to