org.apache.log.util
public class OutputStreamLogger extends LoggerOutputStream
Deprecated: Use LoggerOutputStream as this class was misnamed.
Redirect an output stream to a logger. This class is useful to redirect standard output or standard error to a Logger. An example use isfinal OutputStreamLogger outputStream = new OutputStreamLogger( logger, Priority.DEBUG ); final PrintStream output = new PrintStream( outputStream, true ); System.setOut( output );
Constructor Summary | |
---|---|
OutputStreamLogger(Logger logger, Priority priority)
Construct OutputStreamLogger to write to a particular logger at a particular priority.
|
Deprecated: Use LoggerOutputStream as this class was misnamed.
Construct OutputStreamLogger to write to a particular logger at a particular priority.Parameters: logger the logger to write to priority the priority at which to log