pub fn write_log_line( writer: &mut dyn Write, timestamp: &str, line_no: usize, text: &str, ) -> Result<()>