requireAdmin(); $logFile = BASE_PATH . '/public/logs/error.log'; $logs = []; if (file_exists($logFile)) { $logs = array_reverse(file($logFile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)); $logs = array_slice($logs, 0, 100); } $currentPage = 'logs'; $pageTitle = 'Logs del Sistema'; ?>
logs/error.logconfig/error_logging.php