pub fn record(name: &str, action: &str, detail: &str) -> Result<()>
Record an action by appending to the log (best-effort).