Expand description
File-based decision logging.
Decision logging to ~/.local/share/cc-toolgate/decisions.log.
Initializes a file logger on first call and writes one line per evaluated command with the decision, truncated command text, and reason.
Functionsยง
- init
- Initialize the file logger. Best-effort: failures are silently ignored.
- log_
decision - Log a decision record.
Format:
{decision}\t{command_truncated}\t{reason_oneline}Timestamp is provided by simplelog.