Skip to main content

format_line

Function format_line 

Source
fn format_line(
    time: SystemTime,
    level: Level,
    target: &str,
    message: &str,
) -> String
Expand description

Formats one record as a redacted line: <UTC time> <LEVEL> <target>: <message>.

Messages are cut at MAX_MESSAGE_BYTES. Continuation lines are indented and other control characters are escaped, so a message can’t imitate another record.