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, write
public LoggingOutputStream()
public LoggingOutputStream(org.slf4j.Logger logger)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
public void flush()
flush
in interface Flushable
flush
in class OutputStream
public void write(int b) throws IOException
write
in class OutputStream
IOException
protected void logMessage(String text)
protected ByteArrayOutputStream createBuffer()
Copyright © 2011–2016 Red Hat. All rights reserved.