jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phlip" <phlip2...@gmail.com>
Subject Re: How to turn on logging?
Date Sat, 17 Sep 2005 06:28:52 GMT
Pedro Nevado wrote:

> In my development environment, in src/ I have a log4j.xml file with the
> entry
> <logger name="org.apache.cactus">
>        <level value="debug"/>
>        <appender-ref ref="FILE_LOG"/>
> </logger>

Muchismas gracias! Now...

log4j:WARN No appenders could be found for logger 

My entire, dirt-simple log4j.xml file is this:

<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE log4j:configuration SYSTEM "file:./log4j.dtd">

  <appender name="FILE_LOG" class="org.apache.log4j.RollingFileAppender">
    <param name="MaxFileSize" value="1Mb"/>
    <param name="MaxBackupIndex" value="3"/>
    <param name="file" value="cactus.log"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d [%7r] %6p - %30.30c - %m 

<logger name="org.apache.cactus">
        <level value="debug"/>

    <priority value="INFO"/>

What's wrong with it? (And was there a real reason the error message 
couldn't be more specific??)

  http://www.greencheese.org/ZeekLand  <-- NOT a blog!! 

View raw message