logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Steele" <pste...@maxiscale.com>
Subject Is this a bug or user error?
Date Fri, 15 Aug 2008 15:59:01 GMT
We use the DailyRollingAppender, defined as follows in our config file:

 

   <appender name="FILE"
class="org.jboss.logging.appender.DailyRollingFileAppender">

      <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

      <param name="File" value="<logfile>"/>

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

 

      <!-- Rollover at midnight each day -->

      <param name="DatePattern" value="'.'yyyy-MM-dd"/>

 

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

       <param name="ConversionPattern" value="%d %-5p [%c{1}] %m%n"/>

     </layout>

   </appender>

 

Several applications log to the same log file using this appender.
What's happening is when the rollover occurs at midnight, some processes
still log to the original file, which has now been renamed, whereas
others log to the main log file as they should. I'm suspecting that this
is an error on our part and we should not have multiple processes all
log to the same file, although I've heard that others do this. What's
the solution?

 


Mime
View raw message