pub fn log_event( audit_path: &Path, operation: &str, secret: Option<&str>, actor: &str, outcome: &str, detail: Option<&str>, hmac_key: &[u8], ) -> Result<()>
Append an audit entry to the log file.