public class LoggerOutputStream extends OutputStream
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!| Modifier | Constructor and Description |
|---|---|
protected |
LoggerOutputStream(org.apache.logging.log4j.spi.ExtendedLogger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Charset charset,
String fqcn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected LoggerOutputStream(org.apache.logging.log4j.spi.ExtendedLogger logger, org.apache.logging.log4j.Level level, org.apache.logging.log4j.Marker marker, Charset charset, String fqcn)
public void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush() throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void write(byte[] b) throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void write(int b) throws IOException
write in class OutputStreamIOExceptionCopyright © 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.