public abstract class InputStreamLogEventBridge extends AbstractLogEventBridge<InputStream>
LogEvent
s from an InputStream
.END, logger
Constructor and Description |
---|
InputStreamLogEventBridge(com.fasterxml.jackson.databind.ObjectMapper mapper,
int bufferSize,
Charset charset,
String eventEndMarker) |
Modifier and Type | Method and Description |
---|---|
protected abstract int[] |
getEventIndices(String text,
int beginIndex) |
void |
logEvents(InputStream inputStream,
LogEventListener logEventListener)
Reads
LogEvent s from the given input stream and logs them as they are discovered on the given logger. |
protected Log4jLogEvent |
unmarshal(String jsonEvent) |
wrapStream
protected abstract int[] getEventIndices(String text, int beginIndex)
public void logEvents(InputStream 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
protected Log4jLogEvent unmarshal(String jsonEvent) throws IOException
IOException
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.