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 (org.apache.cactus.internal.configuration.ConfigurationInitializer).

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

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

<log4j:configuration>
 <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 \n\r\n\r"/>
   </layout>
 </appender>

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

 <root>
   <priority value="INFO"/>
 </root>
</log4j:configuration>

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

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

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

Reply via email to