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 DNS debug log lines into LogEntry values.

Uses LogicalRecord framing: a PACKET line starts a new record, subsequent non-PACKET lines (detail sections) append to it. Header lines (before the first PACKET) and blank lines are skipped.