// Simple log viewer header('Content-Type: text/html; charset=utf-8'); ?> Debug Logs

🔍 AutoTranslator Debug Logs

Test Translation Call:

Run test-simple.php →

Recent Logs:

// Try to read error log $log_files = [ '/home/georgiantransfer/logs/error.log', __DIR__ . '/logs/error.log', ini_get('error_log'), '/var/log/php_errors.log' ]; $found = false; foreach ($log_files as $log_file) { if ($log_file && file_exists($log_file) && is_readable($log_file)) { echo "

✅ Reading from: $log_file

"; $lines = file($log_file); $recent_lines = array_slice($lines, -100); // Last 100 lines foreach ($recent_lines as $line) { // Only show AutoTranslator logs if (strpos($line, 'AutoTranslator') !== false) { $class = 'log-entry'; if (strpos($line, 'error') !== false || strpos($line, 'Error') !== false) { $class .= ' error'; } elseif (strpos($line, 'success') !== false || strpos($line, 'Added translation') !== false) { $class .= ' success'; } echo "
" . htmlspecialchars($line) . "
"; } } $found = true; break; } } if (!$found) { echo "

❌ Error log not found. Tried:

"; echo ""; echo "

Note: Logs might be in a different location. Check php.ini for error_log setting.

"; } ?>

PHP Error Log Location:

Current setting: echo ini_get('error_log') ?: 'default (usually syslog)'; ?>

Alternative: Check Server Logs

If you don't see logs above, check your hosting control panel for error logs.