org.apache.log.util
public class LoggerOutputStream extends OutputStream
final LoggerOutputStream outputStream = new LoggerOutputStream( logger, Priority.DEBUG ); final PrintStream output = new PrintStream( outputStream, true ); System.setOut( output );
Field Summary | |
---|---|
boolean | m_closed |
Logger | m_logger |
StringBuffer | m_output |
Priority | m_priority |
Constructor Summary | |
---|---|
LoggerOutputStream(Logger logger, Priority priority)
Construct OutputStreamLogger to write to a particular logger at a particular priority.
|
Method Summary | |
---|---|
void | checkValid()
Make sure stream is valid.
|
void | close()
Shutdown stream. |
void | flush()
Flush data to underlying logger.
|
void | write(int data)
Write a single byte of data to output stream.
|
Parameters: logger the logger to write to priority the priority at which to log
Throws: IOException if an error occurs
Throws: IOException if an error occurs while closing the stream
Throws: IOException if an error occurs
Parameters: data the byte of data
Throws: IOException if an error occurs