public class LoggerFilterOutputStream extends FilterOutputStream
OutputStream methods in spirit, but doesn't require output to any external stream.
This class should not be used as a stream for an underlying logger unless it's being used as a bridge.
Otherwise, infinite loops may occur!out| Modifier | Constructor and Description |
|---|---|
protected |
LoggerFilterOutputStream(OutputStream out,
Charset charset,
ExtendedLogger logger,
String fqcn,
Level level,
Marker marker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
String |
toString() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected LoggerFilterOutputStream(OutputStream out, Charset charset, ExtendedLogger logger, String fqcn, Level level, Marker marker)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.