Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8843

size-rotating-file-handler not rotating

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 6.0.0.Final
    • Fix Version/s: 6.1.0
    • Component/s: Logging
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      WebAPP with

      @Singleton
      @Startup
      public class InitializationJobBean {

      @PostConstruct
      private void startup() {
      int lines = 1000000;
      for (int i = 0; i < lines; i++)

      { System.out.println("#################### line " + i + " of " + lines + ". ############################################################################################"); }

      }

      }

      and standard size rotating file handler:

      <size-rotating-file-handler
      file-name="${jboss.server.log.dir}/server.log"
      name="FILE"
      autoflush="true"
      append="true"
      rotate-size="500k"
      max-backup-index="5">

      <error-manager>
      <only-once/>
      </error-manager>

      <formatter>
      <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/>
      </formatter>
      </size-rotating-file-handler>

      Show
      WebAPP with @Singleton @Startup public class InitializationJobBean { @PostConstruct private void startup() { int lines = 1000000; for (int i = 0; i < lines; i++) { System.out.println("#################### line " + i + " of " + lines + ". ############################################################################################"); } } } and standard size rotating file handler: <size-rotating-file-handler file-name="${jboss.server.log.dir}/server.log" name="FILE" autoflush="true" append="true" rotate-size="500k" max-backup-index="5"> <error-manager> <only-once/> </error-manager> <formatter> <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/> </formatter> </size-rotating-file-handler>

      Description

      size-rotating-file-handler only rotates once and then the logfile grows.

        Attachments

        1. jboss-logging.xml
          18 kB
        2. jboss-logmanager.jar
          179 kB
        3. loggingtest-1.war
          4 kB

          Activity

            People

            Assignee:
            dmlloyd David Lloyd
            Reporter:
            enpasos Matthias Unverzagt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: