public static class LoggingHelper.LoggingOutputStream
extends java.io.ByteArrayOutputStream
| Constructor and Description |
|---|
LoggingOutputStream(java.util.logging.Logger logger,
java.util.logging.Level level)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
upon flush() write the existing contents of the OutputStream
to the logger as a log record.
|
public LoggingOutputStream(java.util.logging.Logger logger,
java.util.logging.Level level)
logger - Logger to write tolevel - Level at which to write the log messagepublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - in case of error