Skip to main content

parse

Function parse 

Source
pub fn parse(line: &str, format: &str) -> ParsedLog
Expand description

Parse a log line according to the given format string.

Format values: "json", "logfmt", "text" (or any other value is treated as text). Parse failures fall back to plain text.