Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-481

Stream-Interface for Loggers

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-beta9
    • 2.0-rc1
    • API
    • None
    • Linux, Java 1.7

    Description

      I would like to have method (or class) to use a logger as a PrintStream, like e.g.:

      PrintStream Logger.getStream(Level level);

      or maybe like this http://www.java2s.com/Open-Source/Java/Testing/jacareto/jacareto/toolkit/log4j/LogOutputStream.java.htm

      (as I recently discovered, org.apache.commons.exec.LogOutputStream is doing different things).

      Attachments

        1. 0001-Remove-dead-code.patch
          4 kB
          Matt Sicker
        2. 0001-Add-LoggerStream-and-tests.patch
          26 kB
          Matt Sicker

        Activity

          People

            Unassigned Unassigned
            FreeJoe Joe Merten
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: