{
"event": "PostToolUse",
"raw_data": {
"session_id": "18ef5bf3-e872-4052-897e-53d6dc45b0b9",
"transcript_path": "\/root\/.claude\/projects\/-var-www\/18ef5bf3-e872-4052-897e-53d6dc45b0b9.jsonl",
"cwd": "\/var\/www\/dev.campus.systemische-tools.de\/src",
"permission_mode": "acceptEdits",
"hook_event_name": "PostToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Logging\/AuditLogger.php",
"limit": 25
},
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Logging\/AuditLogger.php",
"content": "<?php\n\nnamespace Infrastructure\\Logging;\n\nuse Infrastructure\\Config\\DatabaseFactory;\nuse PDO;\n\n\/**\n * Audit Logger for tracking all important application events.\n *\n * Features:\n * - Correlation ID for request tracing\n * - Structured event logging with context\n * - Entity-action pattern for CRUD operations\n * - Automatic user and IP tracking\n *\/\nfinal class AuditLogger\n{\n private string $correlationId;\n private PDO $db;\n\n private const LOG_LEVELS = ['debug', 'info', 'warning', 'error'];\n\n public function __construct(?string $correlationId = null)\n {",
"numLines": 25,
"startLine": 1,
"totalLines": 197
}
},
"tool_use_id": "toolu_01A2zCpfQo9F4S5ztpYHycNC"
}
}