pub type FormatFn = fn(_: &mut BufWriter<File>, _: &Record<'_>) -> Result<()>;
Format function to print logs in a custom format.