0 Replies Latest reply on Jun 14, 2012 2:54 AM by yoshita Pillai

    log4j log rotation

    yoshita Pillai Newbie

      Hi,

       

      I am having a problem with my jboss server log rotation.

      The logs are rotated at midnight daily but the backup log file is still in use by the server and logs are getting updated there whereas the newly careted file remains as is.

      Could one tell me what could have been possibly gone wrong with the configurations.

       

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

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

            <param name="File" value="${jboss.server.log.dir}/server.log"/>

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

       

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

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

       

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

               <!-- The default pattern: Date Priority [Category] Message\n -->

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

       

            </layout>

         </appender>

       

       

      Cheers

      Yoshita