pub fn log_action(
action: &str,
detail: &str,
result: &str,
log_path: &Path,
) -> Result<()>Expand description
Append a timestamped log entry to transaction.log.
Format: YYYY-MM-DD HH:MM:SS | ACTION | detail | result
Auto-rotates if the log exceeds 10,000 lines — the oldest lines are
discarded, keeping only the most recent 10,000.