[ https://issues.apache.org/jira/browse/LOG4J2-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Sicker updated LOG4J2-481: ------------------------------- Attachment: Add_PrintStream_view_LOG4J2-481.patch Here's a simple implementation of the desired behavior. Includes a unit test and default implementation in spi. > Stream-Interface for Loggers > ---------------------------- > > Key: LOG4J2-481 > URL: https://issues.apache.org/jira/browse/LOG4J2-481 > Project: Log4j 2 > Issue Type: New Feature > Components: API > Affects Versions: 2.0-beta9 > Environment: Linux, Java 1.7 > Reporter: Joe Merten > Attachments: Add_PrintStream_view_LOG4J2-481.patch > > > I would like to have method (or class) to use a logger as a PrintStream, like > e.g.: > {quote} > PrintStream Logger.getStream(Level level); > {quote} > 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). -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org