1 Reply Latest reply on Sep 28, 2012 1:02 AM by Y D Prakash

    server.log issue

    santosh malavade Newbie

      hi,

       

      i am using saba application deployed on jboss 4.2 AS

       

      i have observed that the server.log file is not getting updated after a while server is restarted.

       

      i tried changing the configuration pertaining to FILE appender from DailyRollingFileAppender to RollingFileAppender in jboss-log4j.xml and settting the parameter MaxFileSize to 100 MB.  I tried chanding the name to serverJBOSS.log    Although, it started logging into the new file, it stopped when it reached a file size of 3.8 mb.    I have enough space available on the disk.

       

      i am attaching jboss-log4j.xml file for your reference.

       

       

      Rgds,

       

       

      Santosh

        • 1. Re: server.log issue
          Y D Prakash Newbie

          Check with this configuration.

           

          <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"/>

                <param name="Threshold" value="${jboss.server.log.threshold}"/>

                      <!-- 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] (Thread) Message\n -->

                   <param name="ConversionPattern" value="%d %-5p [%c] (%t) %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>