Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BB52FA0D for ; Fri, 10 May 2013 08:25:24 +0000 (UTC) Received: (qmail 54369 invoked by uid 500); 10 May 2013 08:25:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53979 invoked by uid 500); 10 May 2013 08:25:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53028 invoked by uid 99); 10 May 2013 08:25:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 08:25:16 +0000 Date: Fri, 10 May 2013 08:25:16 +0000 (UTC) From: "Dmitry Katsubo (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LOGGING-152) Helper class that redirects OutputStream to Log MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dmitry Katsubo created LOGGING-152: -------------------------------------- Summary: Helper class that redirects OutputStream to Log Key: LOGGING-152 URL: https://issues.apache.org/jira/browse/LOGGING-152 Project: Commons Logging Issue Type: Improvement Affects Versions: 1.1.1 Reporter: Dmitry Katsubo Some libraries accept {{PrintStream}} or {{OutputStream}} as a target for debug messages to be printed to. The attached class acts as a bridge between {{OutputStream}} and {{org.apache.commons.logging.Log}}. Example of usage: {code} PrintStream loggingPrintStream = new PrintStream(new LoggingOutputStream(logger, LoggingOutputStream.LogLevel.INFO, "[XJC] ")); com.sun.tools.xjc.Driver.run(opts, loggingPrintStream, loggingPrintStream); {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira