[−][src]Function pueue_lib::log::read_last_lines
pub fn read_last_lines(file: &mut File, amount: usize) -> String
Read the last amount
lines of a file to a string.
TODO: This is super imperformant, but works as long as we don't use the last 1000 lines. It would be cleaner to seek to the beginning of the requested position and simply stream the content.