Skip to main content

parse_lines

Function parse_lines 

Source
pub fn parse_lines(
    lines: &[&str],
    file_path: &str,
    date_order: DateOrder,
) -> (Vec<LogEntry>, u32)
Expand description

Parse all lines, extracting timestamps where possible. Lines that don’t match any timestamp pattern are included as plain-text entries. Caches the detected format from the first match and tries it first on subsequent lines, avoiding up to 3 wasted regex attempts per line.