pub fn log_removed(names: &[String]) -> Result<()>Expand description
What: Append removed package names to an audit log under the logs directory.
Input:
namesslice of package names to append (one per line).
Output:
Ok(())on success; otherwise an I/O error.
ยงErrors
- Returns
Errwhen the logs directory cannot be accessed or created - Returns
Errwhen the log file cannot be opened or written to
Details:
- Appends to
logs_dir/remove_log.logwithout timestamps.