public class LoggingOutputStream extends OutputStream
OutputStream which logs to a Logger| Constructor and Description |
|---|
LoggingOutputStream() |
LoggingOutputStream(org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected ByteArrayOutputStream |
createBuffer() |
void |
flush() |
protected void |
logMessage(String text) |
void |
write(int b) |
write, writepublic LoggingOutputStream()
public LoggingOutputStream(org.slf4j.Logger logger)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionprotected void logMessage(String text)
protected ByteArrayOutputStream createBuffer()
Copyright © 2011–2014 Red Hat. All rights reserved.