logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter <litong...@gmail.com>
Subject log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE].
Date Wed, 20 Jun 2007 04:30:06 GMT
hi,all

we are using log4j in our system. and it appeals  so many following erros;

 log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE].

does anyone has an idea why and how to sovle it.

thanks !

here is our log4j.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">

 <appender name="OTHERS_LOGFILE" class="org.apache.log4j.RollingFileAppender
">
  <param name="Threshold" value="DEBUG"/>
  <param name="File" value="../logs/others.log"/>
  <param name="Append" value="false"/>
  <param name="MaxFileSize" value="2000KB"/>
  <param name="MaxBackupIndex" value="10"/>
  <layout class="org.apache.log4j.PatternLayout">
   <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  </layout>
 </appender>

 <appender name="DEFAULT_LOGFILE" class="
org.apache.log4j.RollingFileAppender">
  <param name="Threshold" value="DEBUG"/>
  <param name="File" value="../logs/shucoms.log"/>
  <param name="Append" value="false"/>
  <param name="MaxFileSize" value="2000KB"/>
  <param name="MaxBackupIndex" value="10"/>
  <layout class="org.apache.log4j.PatternLayout">
   <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  </layout>
 </appender>



 <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">

  <appender-ref ref="OTHERS_LOGFILE"/>

  <appender-ref ref="DEFAULT_LOGFILE"/>

 </appender>

 <category name="gxlu.eoms" additivity="false">
  <priority value="DEBUG"/>
  <appender-ref ref="DEFAULT_LOGFILE"/>
 </category>
 <category name="org" additivity="false">
  <priority value="INFO"/>
  <appender-ref ref="OTHERS_LOGFILE"/>
 </category>

<!-- Setup the Root category -->
 <root>
  <priority value="DEBUG"/>
  <appender-ref ref="ASYNC"/>
 </root>
</log4j:configuration>

Mime
View raw message