org.apache.logging.log4j.io
Class LoggerReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.logging.log4j.io.LoggerReader
- All Implemented Interfaces:
- Closeable, Readable
public class LoggerReader
- extends FilterReader
Logs each line read to a pre-defined level. Can also be configured with a Marker.
- Since:
- 2.1
|
Constructor Summary |
protected |
LoggerReader(Reader reader,
org.apache.logging.log4j.spi.ExtendedLogger logger,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker)
|
LoggerReader
protected LoggerReader(Reader reader,
org.apache.logging.log4j.spi.ExtendedLogger logger,
String fqcn,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterReader
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read in class FilterReader
- Throws:
IOException
read
public int read(char[] cbuf)
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
read in class FilterReader
- Throws:
IOException
read
public int read(CharBuffer target)
throws IOException
- Specified by:
read in interface Readable- Overrides:
read in class Reader
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1999-2015 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.