Interface TextLogEventParser
- All Superinterfaces:
LogEventParser
- All Known Implementing Classes:
JsonLogEventParser
,XmlLogEventParser
,YamlLogEventParser
Parses the output from a text based layout into instances of
LogEvent
.-
Method Summary
Methods inherited from interface org.apache.logging.log4j.core.parser.LogEventParser
parseFrom, parseFrom
-
Method Details
-
parseFrom
Parses a String, which is expected to contain exactly one log event.- Parameters:
input
- the string- Returns:
- the parsed LogEvent, never
null
. - Throws:
ParseException
- if the input is malformed and cannot be parsed as a LogEvent
-