2 Replies Latest reply on Jul 20, 2006 4:30 AM by knuffer

    Restarting JBoss is deleting the server.log

    knuffer

      Well, the topic sais it all. Can this be avoided? A DailyRollingFileAppender is used... does someone have a hint where the problem might be?

        • 1. Re: Restarting JBoss is deleting the server.log
          jaikiran

          Set the "Append" attribute of the appender to "true". Here's an example:

          <!-- A size based rolling appender -->
           <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
           <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
           <param name="File" value="${jboss.server.home.dir}/log/server.log"/>
           <param name="Append" value="true"/>
           <param name="MaxFileSize" value="50MB"/>
           <param name="MaxBackupIndex" value="20"/>
          
           <layout class="org.apache.log4j.PatternLayout">
           <param name="ConversionPattern" value="%d{ISO8601} [%X{TAPUSERNAME}] %-5p [%c] %m%n"/>
           </layout>
           </appender>


          • 2. Re: Restarting JBoss is deleting the server.log
            knuffer

            Hm, I thought I tried that and was wondering why it didn't work... I'll test again, maybe I just made a mistake.