Logs API Test

Test 1: File Check

❌ api/logs.php not found

Test 2: Functions File

❌ includes/functions.php not found

Test 3: Direct API Call

Testing URL: http://localhost/jerome-hotel/api/logs.php?action=all&limit=5
✅ Got response
Response length: 1965 characters
Response preview: {"success":true,"data":[{"id":"1467","user_id":null,"action":"LOGIN_FAILED","description":"Failed login attempt for username: admin","table_name":"users","record_id":null,"ip_address":"112.203.165.169...
✅ Valid JSON response
Success: true
Data count: 5

Test 4: Database Connection


Warning: require_once(includes/functions.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\New folder\test_logs_api.php on line 63

Fatal error: Uncaught Error: Failed opening required 'includes/functions.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\New folder\test_logs_api.php:63 Stack trace: #0 {main} thrown in C:\xampp\htdocs\New folder\test_logs_api.php on line 63