commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Katsubo (JIRA)" <>
Subject [jira] [Created] (LOGGING-152) Helper class that redirects OutputStream to Log
Date Fri, 10 May 2013 08:25:16 GMT
Dmitry Katsubo created LOGGING-152:

             Summary: Helper class that redirects OutputStream to Log
                 Key: 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:
PrintStream loggingPrintStream = new PrintStream(new LoggingOutputStream(logger, 		      
     LoggingOutputStream.LogLevel.INFO, "[XJC] "));, loggingPrintStream, loggingPrintStream);

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:

View raw message