pub fn create_log_file(filename: &str) -> Result<File, Error>
Create a new log file in write-only append mode, truncating it if it exists.