|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
net.spy.log.LineGettingOutputStream
net.spy.log.LoggingOutputStream
An OutputStream that logs to a Logger.
| Constructor Summary | |
LoggingOutputStream(String name)
Get an instance of LoggingOutputStream. |
|
LoggingOutputStream(String name,
Level level)
Get an instance of LoggingOutputStream. |
|
| Method Summary | |
static void |
main(String[] args)
Redefine the outputs to use the logger. |
protected void |
processChunk(String chunk)
Send the stuff to the logger. |
static void |
redefineOutputs()
Redefine stdout and stderr using new logging streams. |
| Methods inherited from class net.spy.log.LineGettingOutputStream |
setErr, setOut, write, write |
| Methods inherited from class java.io.OutputStream |
close, flush, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LoggingOutputStream(String name)
public LoggingOutputStream(String name,
Level level)
| Method Detail |
protected void processChunk(String chunk)
processChunk in class LineGettingOutputStreamchunk - public static void redefineOutputs()
public static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||