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

Stream-Interface for Loggers

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta9
    • Fix Version/s: 2.0-rc1
    • Component/s: API
    • Labels:
      None
    • Environment:

      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-Add-LoggerStream-and-tests.patch
          26 kB
          Matt Sicker
        2. 0001-Remove-dead-code.patch
          4 kB
          Matt Sicker

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: