2 Replies Latest reply on Nov 29, 2016 8:00 AM by jimmy001

    size-rotating-file-handler not working as expected

    jimmy001 Apprentice

      Hello,

       

      in standalone-full I changed the logging handler to size-rotating-file-handler (see below). When the rotate-size has been reached a new log-file is created.

      BUT when max-backup-index is reached and server.log reaches rotate-size again - no rotation happens. No changes to xyz.log.1.

      What could cause this?

       

       

                 <size-rotating-file-handler name="FILE" autoflush="true">
                      <formatter>
                          <named-formatter name="PATTERN"/>
                      </formatter>
                      <file relative-to="jboss.server.log.dir" path="server.log"/>
                      <suffix value=".yyyy-MM-dd"/>
                      <rotate-size value="500k"/>
                      <max-backup-index value="2"/>
                      <append value="false"/>
                  </size-rotating-file-handler>
      

       

      logging.png