3 Replies Latest reply on Jul 2, 2010 11:19 AM by Peter Johnson

    Log files not rolling

    Jithu mada Newbie



      We are using  Jboss 5.1.0.GA, java version 1.6.0 and the OS is AIX.



      The issue we are facing is sometime the log files for few applications are not getting rolled over, meaning for example I have a web application A deployed on Jboss and the appender configured is DailyRollingFileAppender, it creates the log file for today and doesn't create for the next day. And sometimes it just stops logging anything into server.log even though activity is being done and also sometimes it logs application A logs into server.log.


      But if I touch the jboss-log4j.xml file it works fine for sometime. I have no idea the reason for this behavior. Is there any place where I can check to find Jboss is having issues logging. What could be the reason for this.



      <appender name="app" class="org.jboss.logging.appender.DailyRollingFileAppender">
            <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
            <param name="File" value="${jboss.server.log.dir}/app.log"/>
            <param name="Append" value="true"/>
            <param name="DatePattern" value="'.'yyyy-MM-dd"/>
            <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/>