log_removed

Function log_removed 

Source
pub fn log_removed(names: &[String]) -> Result<()>
Expand description

What: Append removed package names to an audit log under the logs directory.

Input:

  • names slice of package names to append (one per line).

Output:

  • Ok(()) on success; otherwise an I/O error.

ยงErrors

  • Returns Err when the logs directory cannot be accessed or created
  • Returns Err when the log file cannot be opened or written to

Details:

  • Appends to logs_dir/remove_log.log without timestamps.