0 Replies Latest reply on Sep 16, 2014 11:00 PM by Premkumar Reddy

    jboss-log4j.xml configuration for size based log rotation( JBOSS  5.1.0) Red Hat linux 5.0

    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, but this configuration is not working. Please can anyone help me on this?

      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?

      Thanks in advance!!!!!!!!