Interface LogEventParser
- All Known Subinterfaces:
TextLogEventParser
- All Known Implementing Classes:
JsonLogEventParser
,XmlLogEventParser
,YamlLogEventParser
public interface LogEventParser
Parse the output from a layout into instances of
LogEvent
.-
Method Summary
-
Method Details
-
parseFrom
Parses a byte array, which is expected to contain exactly one log event.- Parameters:
input
- the byte array- Returns:
- the parsed LogEvent, never
null
. - Throws:
ParseException
- if the input is malformed and cannot be parsed as a LogEvent
-
parseFrom
Parses a specified range in a byte array. The specified range is expected to contain exactly one log event.- Parameters:
input
- the byte arrayoffset
- the initial offsetlength
- the length- Returns:
- the parsed LogEvent, never
null
. - Throws:
ParseException
- if the input is malformed and cannot be parsed as a LogEvent
-