public class ObjectInputStreamLogEventBridge extends AbstractLogEventBridge<ObjectInputStream>
LogEvent
objects from an ObjectInputStream
.END, logger
Constructor and Description |
---|
ObjectInputStreamLogEventBridge() |
Modifier and Type | Method and Description |
---|---|
void |
logEvents(ObjectInputStream inputStream,
LogEventListener logEventListener)
Reads
LogEvent s from the given input stream and logs them as they are discovered on the given logger. |
ObjectInputStream |
wrapStream(InputStream inputStream)
Wraps the given stream if needed.
|
public ObjectInputStreamLogEventBridge()
public void logEvents(ObjectInputStream inputStream, LogEventListener logEventListener) throws IOException
LogEventBridge
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
public ObjectInputStream wrapStream(InputStream inputStream) throws IOException
LogEventBridge
wrapStream
in interface LogEventBridge<ObjectInputStream>
wrapStream
in class AbstractLogEventBridge<ObjectInputStream>
inputStream
- the stream to wrapIOException
Copyright © 1999-2021 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.