Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-199

Reinitialize the output stream when it fails on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.0.8.Final, 2.1.0.Final
    • core
    • None
    • Hide

      On Windows, add
      <periodic-size-rotating-file-handler name="PERIODIC_SIZE" autoflush="true">
      <formatter>
      <named-formatter name="PATTERN"/>
      </formatter>
      <file relative-to="jboss.server.log.dir" path="server.log"/>
      <rotate-size value="80m"/>
      <max-backup-index value="1200"/>
      <suffix value=".yyyy.MM.dd"/>
      <append value="true"/>
      </periodic-size-rotating-file-handler>

      And set the log to trace.

      Show
      On Windows, add <periodic-size-rotating-file-handler name="PERIODIC_SIZE" autoflush="true"> <formatter> <named-formatter name="PATTERN"/> </formatter> <file relative-to="jboss.server.log.dir" path="server.log"/> <rotate-size value="80m"/> <max-backup-index value="1200"/> <suffix value=".yyyy.MM.dd"/> <append value="true"/> </periodic-size-rotating-file-handler> And set the log to trace.

    Description

      After the fix https://issues.jboss.org/browse/LOGMGR-154 we can still observe that the log file when using periodic file size rotation on Windows it stops logging, one solution discussed is to reinitialize the output stream when this happens.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: