logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clare.My...@Anthem.com
Subject error during DOMConfigurator::configure(String filename) call
Date Wed, 08 Oct 2003 14:30:20 GMT
I am trying to use the DailyRollingFileAppender in an asynchronous way.
When executing the DOMConfigurator::configure(String filename) I am getting
the following error:

      log4j:ERROR Parsing error on line 15 and column 12
      log4j:ERROR The content of element type "appender" must match

Here is my config file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="false">
      <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
            <appender-ref ref="ROLLFILE"/>

      <appender name="ROLLFILE"
            <layout class="org.apache.log4j.PatternLayout">
                  <param name="ConversionPattern" value="[%t] %d{yyyyMMdd
HH:mm:ss:SSS} %-5p %c - %m%n"/>

            <param name="DatePattern" value="'.'yyyyMMdd"/>
            <param name="File"

            <priority value="debug"/>
            <appender-ref ref="ASYNC"/>

Any ideas?

Clare H. Myers
Application Developer Advisor
Anthem - AMMS
(513) 336-5472

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain confidential
and privileged information or otherwise protected by law.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.

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

View raw message