Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1.1
-
None
-
None
Description
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] ")); com.sun.tools.xjc.Driver.run(opts, loggingPrintStream, loggingPrintStream);
Also has some overlap with LOGGING-110.