2 Replies Latest reply on Jan 26, 2015 9:09 AM by c s

    jboss-as-7.1.1-final logging refresh issue

    c s Newbie

      Hello,

       

      Server configuration is standalone.

      My need is to have one server.log by day.

      You can see bellow my logging configuration. server.log file creation is correct but is not refresh in real time sometimes it takes more than 20 minutes to refresh !!

      Where is the mistake, why it takes so long to refresh, is there a spool or something else ? Thanks for your help. Regards.

       

          <subsystem xmlns="urn:jboss:domain:logging:1.1">
                  <console-handler name="CONSOLE">
                      <level name="DEBUG"/>
                      <formatter>
                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                      </formatter>
                  </console-handler>
                  <custom-handler name="FILE_PURGE" class="com.st.tou.jboss.logging.PeriodicRotatingFileHandlerWithPurge" module="com.st.tou.jboss.logging">
                      <level name="DEBUG"/>
                      <formatter>
                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                      </formatter>
                      <properties>
                          <property name="suffix" value=".yyyy-MM-dd"/>
                          <property name="append" value="true"/>
                          <property name="Path" value="jboss.server.log.dir"/>
                          <property name="LogFile" value="server.log"/>
                          <property name="DebugFile" value="log.log"/>
                          <property name="MaxBackupIndex" value="30"/>
                      </properties>
                  </custom-handler>
                  <periodic-rotating-file-handler name="FILE">
                      <formatter>
                          <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
                      </formatter>
                      <file relative-to="jboss.server.log.dir" path="server.log"/>
                      <suffix value=".yyyy-MM-dd"/>
                      <append value="true"/>
                  </periodic-rotating-file-handler>
                  <logger category="com.arjuna">
                      <level name="WARN"/>
                  </logger>
                  <logger category="org.apache.tomcat.util.modeler">
                      <level name="WARN"/>
                  </logger>
                  <logger category="sun.rmi">
                      <level name="WARN"/>
                  </logger>
                  <logger category="jacorb">
                      <level name="WARN"/>
                  </logger>
                  <logger category="jacorb.config">
                      <level name="ERROR"/>
                  </logger>
                  <root-logger>
                      <level name="INFO"/>
                      <handlers>
                          <handler name="CONSOLE"/>
                          <handler name="FILE_PURGE"/>
                      </handlers>
                  </root-logger>
              </subsystem>