Skip to main content

format_into

Function format_into 

Source
pub fn format_into(
    line: &mut String<LINE_CAP>,
    secs: u64,
    millis: u64,
    level: &str,
    args: Arguments<'_>,
)
Expand description

One CRLF-terminated line into line, replacing what it held: header, then args as far as they fit. A cut line ends in TRUNC_MARK, so a missing tail is visible, never silent. In place, so the caller decides where the line lives: no line buffer is ever on the stack of the code that logs.