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

Reinitialize the output stream when it fails on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major 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.

      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.

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

                Created:
                Updated:
                Resolved: