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