public abstract class InputStreamLogEventBridge extends AbstractLogEventBridge<InputStream>
LogEvents 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
LogEvents from the given input stream and logs them as they are discovered on the given logger. |
protected Log4jLogEvent |
unmarshal(String jsonEvent) |
wrapStreamprotected abstract int[] getEventIndices(String text, int beginIndex)
public void logEvents(InputStream inputStream, LogEventListener logEventListener) throws IOException
LogEventBridgeLogEvents from the given input stream and logs them as they are discovered on the given logger.inputStream - the input stream to readlogEventListener - TODOIOExceptionprotected Log4jLogEvent unmarshal(String jsonEvent) throws IOException
IOExceptionCopyright © 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.