Skip to main content

render

Function render 

Source
pub fn render(item: &StreamItem, style: LogStyle, elapsed: Duration) -> String
Expand description

Formats one item as the line a terminal shows.

elapsed is the time since the stream started, used only when LogStyle::elapsed is set — the wall clock a user cares about during a run is “how long has this been going”, not a date, and deriving it here keeps the formatter free of any dependency on how the caller measures time.