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

Setting an encoding on a OutputStreamHandler that uses setWriter sets the writer to null too

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.5.0.Final
    • None
    • None
    • None

      An example is the ConsoleHandler. Using a target of CONSOLE uses the setWriter(wrap(System.console())) which sets the outputStream to null. The setEncoding() uses the outputStream then sets the writer. Since the outputStream is null due to the setWriter() being invoked, the writer is then set to null so no output is being written.

              ehugonne1@redhat.com Emmanuel Hugonnet
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: