Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EACFE1091E for ; Sun, 5 Jan 2014 07:29:53 +0000 (UTC) Received: (qmail 75292 invoked by uid 500); 5 Jan 2014 07:29:52 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 75181 invoked by uid 500); 5 Jan 2014 07:29:51 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 75153 invoked by uid 99); 5 Jan 2014 07:29:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jan 2014 07:29:50 +0000 Date: Sun, 5 Jan 2014 07:29:50 +0000 (UTC) From: "Matt Sicker (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-481) Stream-Interface for Loggers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 an updated version. I also updated some unit tests in order to test markers in LoggerTest. > 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-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org