Skip to main content

tail_log

Function tail_log 

Source
pub fn tail_log(path: &Path, n: usize) -> Result<Vec<String>>
Expand description

Return the last n parseable records from path, rendered in Logfmt. Unparseable lines are skipped.

ยงErrors

Returns io::Error if the file cannot be opened or read.