T - The kind of InputStream to wrap and read.public interface LogEventBridge<T extends InputStream>
LogEvents from the given input stream and logs them as they are discovered on the given logger.
Should be stateless.
| Modifier and Type | Method and Description |
|---|---|
void |
logEvents(T inputStream,
LogEventListener logEventListener)
Reads
LogEvents from the given input stream and logs them as they are discovered on the given logger. |
T |
wrapStream(InputStream inputStream)
Wraps the given stream if needed.
|
void logEvents(T inputStream, LogEventListener logEventListener) throws IOException
LogEvents from the given input stream and logs them as they are discovered on the given logger.inputStream - the input stream to readlogEventListener - TODOIOExceptionT wrapStream(InputStream inputStream) throws IOException
inputStream - the stream to wrapIOExceptionCopyright © 1999-2017. 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.