2 Replies Latest reply on Sep 21, 2010 4:07 PM by Shaun Smith

    JBoss Log4J file extension

    Shaun Smith Newbie

      Good Morning,

       

      I am trying to figure out how to modify the file name of the JBoss log4j RollingFileAppender log file to (for example) "jbossout-2.log" instead of "jbossout.log.2" which is the default. How might I go about doing this?

       

      The current configuration is as follows:

      <!-- 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="../../logs/jbossout.log"/>
           <param name="Append" value="false"/>
           <param name="MaxFileSize" value="1MB"/>
           <param name="MaxBackupIndex" value="50"/>
      
           <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
           </layout>        
         </appender>
      

       

      Thank you for your time.