0 Replies Latest reply on Sep 16, 2014 12:45 AM by Premkumar Reddy

    jboss-log4j.xml configuration for size based log rotation help

    Premkumar Reddy Newbie

      Hi Friends,

          I made changes to jboss-log4j.xml file to rotate logs based on file size. below is the configuration which I added. Please can someone help why below configuration is not working? Thanks in advance friendls!!!!!!!

      Note: server.log directory path is:  /jboss/server/qa8a/log

       

      <!-- A size based file rolling appender -->

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

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

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

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

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

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

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

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

            </layout>

         </appender>

       

      Please can anyone help me on this why this configuration is not working for log rotation?

      Thanks in advance!!!!!!!!