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: 1872 characters
Response preview: {"success":true,"data":[{"id":"1427","user_id":null,"action":"USER_LOGIN","description":"User admin (System Administrator) logged in successfully","table_name":"users","record_id":"1","ip_address":"10...
✅ 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