Package org.apache.logging.log4j.io
Class LoggerInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.logging.log4j.io.LoggerInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Logs each line read to a pre-defined level. Can also be configured with a Marker.
- Since:
- 2.1
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LoggerInputStream
(InputStream in, Charset charset, ExtendedLogger logger, String fqcn, Level level, Marker marker) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
FQCN
-
logger
-
-
Constructor Details
-
LoggerInputStream
protected LoggerInputStream(InputStream in, Charset charset, ExtendedLogger logger, String fqcn, Level level, Marker marker)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
toString
-