0 Replies Latest reply on Mar 16, 2007 11:13 AM by Dan Kamp

    append date/timestamp to rolled over log files using Rolling

    Dan Kamp Newbie

      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"