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,
org.apache.logging.log4j.spi.ExtendedLogger logger,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.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, org.apache.logging.log4j.spi.ExtendedLogger logger, String fqcn, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 1999-2021 The 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.