pub fn flush_log_file()