// Simple log viewer header('Content-Type: text/html; charset=utf-8'); ?>
✅ 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 "❌ Error log not found. Tried:
"; echo "Note: Logs might be in a different location. Check php.ini for error_log setting.
"; } ?>Current setting: echo ini_get('error_log') ?: 'default (usually syslog)'; ?>
If you don't see logs above, check your hosting control panel for error logs.