2 Replies Latest reply on Nov 21, 2003 12:20 PM by skelly

    Logging

    skelly

      About 3 weeks ago our JBOSS server started to crash daily around 2 pm CST. Very strange! Since then the system log file no longer is anywhere to be found we only get a boot. log. Where can I set the system log to actually log?

      I check the log4j.xml but do not see it.

        • 1. Re: Logging
          jonlee

          It should be in log4j.xml and should be up the top in a 3.2.x distribution. It should look something like this - adjust it to your requirements if you do not already have it in your file.

          <!-- 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.home.dir}/log/server.log"/>
           <param name="Append" value="false"/>
           <param name="Threshold" value="INFO"/>
          
           <!-- 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: Logging
            skelly

            I will try it this weekend thanks