public static class LoggerUtils.LoggingOutputStream extends ByteArrayOutputStream
Constructor and Description |
---|
LoggingOutputStream(Logger logger,
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.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
write
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
- in case of errorCopyright © 2020 Metron, Inc.. All rights reserved.