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

    • Bug
    • Resolution: Done
    • Major
    • 6.1.0
    • 6.0.0.Final
    • Logging
    • None
    • 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. loggingtest-1.war
          4 kB
        3. jboss-logmanager.jar
          179 kB

        Activity

          People

            dlloyd@redhat.com David Lloyd
            enpasos_jira Matthias Unverzagt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: