2 Replies Latest reply on Apr 13, 2006 9:05 AM by Dru Devore

    Large blank space in server.log after defining custom append

    Dru Devore Newbie

      I am getting a very large space at the begining of the server.log once I defined a appender for an application log. The space does not seem to appear untill I write something to the custom log.

      Here is my definition in the log4j.xml (I also tried false for the append value)

      <!-- A time/date based rolling appender for application logs -->





      <!-- Rollover at midnight each day -->
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>

      <!-- Rollover at the top of each hour
      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
      -->


      <!-- The default pattern: Date Priority [Category] Message\n -->


      <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n

      -->




      Thanks for any help

        • 1. Re: Large blank space in server.log after defining custom ap
          Dru Devore Newbie

          Lets try this one instead.

          Here is my definition in the log4j.xml (I also tried false for the append value)

           <!-- A time/date based rolling appender for application logs -->
           <appender name="Application" class="org.jboss.logging.appender.DailyRollingFileAppender">
           <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
           <param name="File" value="${jboss.server.home.dir}/log/Application.log"/>
           <param name="Append" value="true"/>
          
           <!-- Rollover at midnight each day -->
           <param name="DatePattern" value="'.'yyyy-MM-dd"/>
          
           <!-- Rollover at the top of each hour
           <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
           -->
          
           <layout class="org.apache.log4j.PatternLayout">
           <!-- The default pattern: Date Priority [Category] Message\n -->
           <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
          
           <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
           <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
           -->
           </layout>
           </appender>
          


          • 2. Re: Large blank space in server.log after defining custom ap
            Dru Devore Newbie

            Anyone have any idea why I would be getting large spaces in the server.log?