| java.lang.Object java.io.OutputStream jacareto.toolkit.log4j.LogOutputStream
LogOutputStream | public class LogOutputStream extends OutputStream (Code) | | This class logs all bytes written to it as output stream with a specified logging level.
author: Christian Spannagel version: 1.0 |
Constructor Summary | |
public | LogOutputStream(Logger logger, Level level) Creates a new log output stream which logs bytes to the specified logger with the specified
level. |
Method Summary | |
public void | flush() Flushes the output stream. | public Level | getLevel() Returns the logging level. | public Logger | getLogger() Returns the logger. | public void | setLevel(Level level) Sets the logging level. | public void | setLogger(Logger logger) Sets the logger where to log the bytes. | public void | write(int b) Writes a byte to the output stream. |
LogOutputStream | public LogOutputStream(Logger logger, Level level)(Code) | | Creates a new log output stream which logs bytes to the specified logger with the specified
level.
Parameters: logger - the logger where to log the written bytes Parameters: level - the level |
flush | public void flush()(Code) | | Flushes the output stream.
|
getLevel | public Level getLevel()(Code) | | Returns the logging level.
DOCUMENT ME! |
getLogger | public Logger getLogger()(Code) | | Returns the logger.
DOCUMENT ME! |
setLevel | public void setLevel(Level level)(Code) | | Sets the logging level.
Parameters: level - DOCUMENT ME! |
setLogger | public void setLogger(Logger logger)(Code) | | Sets the logger where to log the bytes.
Parameters: logger - the logger |
write | public void write(int b)(Code) | | Writes a byte to the output stream. This method flushes automatically at the end of a line.
Parameters: b - DOCUMENT ME! |
|
|