📊 Cabinet Digital Signage - Log Viewer

substr_count($allContent, '[FATAL]'), 'ERROR' => substr_count($allContent, '[ERROR]'), 'WARNING' => substr_count($allContent, '[WARNING]'), 'INFO' => substr_count($allContent, '[INFO]') ]; ?>
FATAL Errors
Errors
Warnings
Info Messages
0) { $logLines = array_slice($logLines, -$lines); } $currentEntry = ''; foreach ($logLines as $line) { // Erkennen von Log-Level if (preg_match('/\[(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\]\s+\[([A-Z]+)\s*\]\s+(.+)/', $line, $matches)) { if ($currentEntry) { echo "
"; } $timestamp = $matches[1]; $level = trim($matches[2]); $message = htmlspecialchars($matches[3]); echo "
"; echo "{$timestamp}"; echo "{$level}"; echo "{$message}"; $currentEntry = $level; } else { // Kontext-Zeilen echo "
" . htmlspecialchars($line) . "
"; } } if ($currentEntry) { echo "
"; } ?>

Bitte wähle eine Log-Datei aus dem Dropdown-Menü.

⚠️ Keine Log-Dateien gefunden. Stelle sicher, dass das Logging aktiv ist und das Verzeichnis 'logs/' existiert.