|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
com.sun.common.util.logging.LoggingOutputStream
public class LoggingOutputStream
Implementation of a OutputStream that flush the records to a Logger. This is useful to redirect stderr and stdout to loggers.
User: Jerome Dochez author: Jerome Dochez, Carla Mott
| Nested Class Summary | |
|---|---|
class |
LoggingOutputStream.LoggingPrintStream
|
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
LoggingOutputStream(java.util.logging.Logger logger,
java.util.logging.Level level)
Constructor |
|
| Method Summary | |
|---|---|
void |
flush()
upon flush() write the existing contents of the OutputStream to the logger as a log record. |
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingOutputStream(java.util.logging.Logger logger,
java.util.logging.Level level)
logger - Logger to write tolevel - Level at which to write the log message| Method Detail |
|---|
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - in case of error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||