Hook
audit
✓ Verified
Free
Session Logger
Log every prompt, tool call, and result during AI sessions for audit trail and reproducibility.
4.5(56 reviews)
23,400 installs
by Community
About
Captures full session telemetry: prompts, tool calls with arguments, tool results, file edits, and timestamps. Outputs JSON Lines for easy querying. Useful for audit, debugging, and reproducing past sessions.
Tags
loggingaudittelemetrytrace
Hook Configuration (hooks.json)
{
"hooks": [
{ "event": "sessionStart", "command": ".github/hooks/session-logger/log-start.sh" },
{ "event": "postToolUse", "command": ".github/hooks/session-logger/log-tool.sh" },
{ "event": "sessionEnd", "command": ".github/hooks/session-logger/log-end.sh" }
],
"env": {
"LOG_DIR": "logs/copilot/sessions",
"LOG_FORMAT": "jsonl"
}
}Triggers:sessionStartpostToolUsesessionEndmode: log
Install
# Install hook into your project: mkdir -p .github/hooks/session-logger curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/hooks/session-logger/hooks.json" \ -o .github/hooks/session-logger/hooks.json
C
Community
@awesome-copilot-community