pub fn add_comment(config: &Config, args: &[String]) -> Result<()>Expand description
Add a comment line to the logfile
ยงErrors
- Return
PathError::FilenameMissingif the log file has no filename. - Return
PathError::InvalidPathif the path part of log file is not a valid path. - Return
PathError::FileAccessif the log file cannot be opened or created. - Return
PathError::FileWriteif the function fails to append to the log file.