[jboss-dev-forums] [Other JBoss Development Design] - default append setting to log/server.log is false

dimitris@jboss.org do-not-reply at jboss.com
Tue Jan 20 12:08:45 EST 2009


Looking at https://jira.jboss.org/jira/browse/JBAS-6361.

Our default setting for log/server.log is to re-create the file upon start-up.


  |    <!-- A time/date based rolling appender -->
  |    <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="File" value="${jboss.server.log.dir}/server.log"/>
  |       <param name="Append" value="false"/>
  | 

I suppose this is a convenient setting for a developer environment, where you only need to keep the log for the latest run (although using a RollingFileAppender really contradicts the developer point, a plain FileAppender would be preferrable), but for a production environment you'll most probably want to keep the existing log content during a re-start.

What do you think - should we switch to append == true?

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

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



More information about the jboss-dev-forums mailing list