1 line
503 B
JSON
1 line
503 B
JSON
{"content": "{\n \"description\": \"Log all Claude Code commands to a file for audit and debugging purposes. Simple logging that records tool usage with timestamps.\",\n \"hooks\": {\n \"PreToolUse\": [\n {\n \"matcher\": \"*\",\n \"hooks\": [\n {\n \"type\": \"command\",\n \"command\": \"echo \\\"[$(date)] Tool: $CLAUDE_TOOL_NAME | File: $CLAUDE_TOOL_FILE_PATH\\\" >> ~/.claude/command-log.txt\"\n }\n ]\n }\n ]\n }\n}"} |