logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nageena Parveen" <nageen...@gmail.com>
Subject Appenders not found
Date Thu, 27 Apr 2006 09:21:55 GMT
Hi,

    I am using a configuration file in XML format, its giving an error
saying appenders not found.Here is my xml file :

  <?xml version="1.0" encoding="UTF-8" ?>

> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

> <log4j:configuration>

> <appender name="debugOnly"

> class="org.apache.log4j.RollingFileAppender">

> <param name="File" value="debug.log"/>

> <param name="MaxFileSize" value="10MB"/>

> <param name="MaxBackupIndex" value="1"/>

> <param name="Append" value="true" />

> <layout class="org.apache.log4j.PatternLayout">

> <param name="ConversionPattern" value="%d

> %-5p %-17c{2} (%30F:%L) %3x - %m%n"/>

> </layout>

> <!--Filter to log debug messages only-->

> <filter

> class="org.apache.log4j.varia.LevelMatchFilter" >

> <param name="LevelToMatch" value="debug"/>

> <param name="AcceptOnMatch" value="true"/>

> </filter>

>

> <filter

> class="org.apache.log4j.varia.DenyAllFilter"/>

> </appender>

>

> <appender name="errorOnly"

> class="org.apache.log4j.RollingFileAppender">

> <param name="File" value="Error.log"/>

> <param name="MaxFileSize" value="10KB"/>

> <param name="MaxBackupIndex" value="1"/>

> <layout

> class="org.apache.log4j.PatternLayout">

> <param name="ConversionPattern" value="%d

> %-5p %-17c{2} (%30F:%L) %3x - %m%n"/>

> </layout>

>

> <!--Filter to log error messages only-->

> <filter

> class="org.apache.log4j.varia.LevelMatchFilter" >

> <param name="LevelToMatch" value="error"/>

> <param name="AcceptOnMatch" value="true"/>

> </filter>

> <filter

> class="org.apache.log4j.varia.DenyAllFilter"/>

>

> </appender>

>

> <logger name ="logger" aditivity="false">

> <level value="debug"/>

> <appender-ref ref="debugOnly"/>

> <appender-ref ref="errorOnly"/>

> </logger>

>

>

> <root>

> <level value="debug"/>

> <appender-ref ref="debugOnly"/>

<appender-ref ref="errorOnly"/>

> </root>

>

> </log4j:configuration>>

>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message