Agent Observability Logger
Agent Observability Logger captures every tool invocation, notification, and session event into a structured JSONL log file. Each entry includes the timestamp, tool name, input summary, output status, and token usage. This creates a complete audit trail that helps you understand what Claude did during a session, debug unexpected behavior, track patterns over time, and satisfy compliance requirements. Logs rotate daily and can be forwarded to any observability platform.
Hook Code
Add this hook to your Claude Code settings or .claude/settings.json to activate.
Terminal Preview
About Agent Observability Logger
Claude Code hooks let you run custom shell commands automatically in response to specific events during Claude's operation. Agent Observability Logger is a Notification hook at the Intermediate level that automates tasks at key moments in your development workflow, reducing manual steps and enforcing consistency across your team.