Back to Hooks

log-commands

PostToolUse

Log all executed commands and tool invocations to an audit file.

Details

Category
monitoring
Event
PostToolUse
Matcher
Bash
Language
bash

Tags

logging
audit
monitoring

Implementation

Record all bash commands executed during a Claude Code session to a timestamped audit log for debugging and compliance purposes.