T
- The kind of InputStream
to wrap and read.public interface LogEventBridge<T extends InputStream>
LogEvent
s 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
LogEvent s 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
LogEvent
s from the given input stream and logs them as they are discovered on the given logger.inputStream
- the input stream to readlogEventListener
- TODOIOException
T wrapStream(InputStream inputStream) throws IOException
inputStream
- the stream to wrapIOException
Copyright © 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.