[jboss-user] [Installation, Configuration & Deployment] - append date/timestamp to rolled over log files using Rolling

daniel.kamp@ge.com do-not-reply at jboss.com
Fri Mar 16 11:13:36 EDT 2007

Good morning all,
   I would like to roll over (aka. archive) my past log files with a date and timestamp extension while using the RollingFileAppender? what log4j.xml setting can I set to do this.  The snapshot of my log4j.xml is listed below. I have removed the <> to avoid rendering issues

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="2KB"
     param name="MaxBackupIndex" value="30"

     layout class="org.apache.log4j.PatternLayout"
      	 param name="ConversionPattern" value="%d %-5p [%c] %m%n"

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028811#4028811

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028811

More information about the jboss-user mailing list