logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject RE: setting up log4j
Date Wed, 14 Jun 2006 20:49:54 GMT

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 <dhall@utrs.com>:

> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message