public class LoggingOutputStream extends ByteArrayOutputStream
| Modifier and Type | Class and Description |
|---|---|
class |
LoggingOutputStream.LoggingPrintStream |
buf, count| Constructor and Description |
|---|
LoggingOutputStream(Logger logger,
Level level)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
upon flush() write the existing contents of the OutputStream
to the logger as a log record.
|
void |
log()
Retrieves the LogRecord from our Queue and log them
|
reset, size, toByteArray, toString, toString, toString, write, write, writeTowritepublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException - in case of errorpublic void log()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ByteArrayOutputStreamIOExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.