English
Spanish
French
0
Notifications
0 Non lues
Aucune notification
Voir toutes
Aucune nouvelle notification
Raccourcis
Tableau de bord
Profil
Paramètres
Voir toutes les apps
Utilisateur
Utilisateur
Profil
Messages
25
Paramètres
Solde
$47.12
Support
Se déconnecter
Dashboard
Dashboard
Éditer dashboard/logs.php
<?= $this->extend('dashboard/layout') ?> <?= $this->section('content') ?> <div class="container-fluid"> <div class="d-md-flex d-block align-items-center justify-content-between my-4 page-header-breadcrumb"> <h1 class="page-title fw-semibold fs-18 mb-0">System Logs</h1> <div class="ms-md-1 ms-0"> <nav> <ol class="breadcrumb mb-0"> <li class="breadcrumb-item"><a href="#">Dashboard</a></li> <li class="breadcrumb-item active" aria-current="page">Logs</li> </ol> </nav> </div> </div> <div class="row"> <div class="col-xl-12"> <div class="card custom-card"> <div class="card-header"> <div class="card-title">Log Viewer</div> </div> <div class="card-body"> <form method="get" class="row g-3 mb-4"> <div class="col-md-4"> <label class="form-label">Log File</label> <select name="file" class="form-select" onchange="this.form.submit()"> <?php foreach ($logFiles as $file): ?> <option value="<?= $file ?>" <?= $selectedFile === $file ? 'selected' : '' ?>> <?= $file ?> </option> <?php endforeach; ?> </select> </div> <div class="col-md-4"> <label class="form-label">Search</label> <input type="text" name="search" class="form-control" value="<?= $searchTerm ?>" placeholder="Search logs..."> </div> <div class="col-md-3"> <label class="form-label">Level</label> <select name="level" class="form-select"> <option value="">All Levels</option> <option value="ERROR" <?= $level === 'ERROR' ? 'selected' : '' ?>>ERROR</option> <option value="CRITICAL" <?= $level === 'CRITICAL' ? 'selected' : '' ?>>CRITICAL</option> <option value="DEBUG" <?= $level === 'DEBUG' ? 'selected' : '' ?>>DEBUG</option> <option value="INFO" <?= $level === 'INFO' ? 'selected' : '' ?>>INFO</option> <option value="WARNING" <?= $level === 'WARNING' ? 'selected' : '' ?>>WARNING</option> </select> <option value="ERROR" <?= $level === 'ERROR' ? 'selected' : '' ?>>ERROR</option> <option value="INFO" <?= $level === 'INFO' ? 'selected' : '' ?>>INFO</option> <option value="DEBUG" <?= $level === 'DEBUG' ? 'selected' : '' ?>>DEBUG</option> <option value="CRITICAL" <?= $level === 'CRITICAL' ? 'selected' : '' ?>>CRITICAL</option> </select> </div> <div class="col-md-1"> <label class="form-label"> </label> <button type="submit" class="btn btn-primary w-100">Filter</button> </div> </form> <div class="table-responsive"> <table class="table table-hover border text-nowrap"> <thead> <tr> <th>Timestamp</th> <th>Level</th> <th>Type</th> <th>Message</th> <th>Explanation</th> </tr> </thead> <tbody> <?php foreach ($logs as $log): ?> <tr class="<?= strtolower($log['severity']) === 'error' ? 'table-danger' : (strtolower($log['severity']) === 'critical' ? 'table-dark' : '') ?>"> <td><?= $log['timestamp'] ?></td> <td><span class="badge bg-<?= strtolower($log['severity']) === 'error' ? 'danger' : (strtolower($log['severity']) === 'critical' ? 'dark' : 'info') ?>"><?= $log['severity'] ?></span></td> <td><?= $log['type'] ?></td> <td><code><?= htmlspecialchars($log['message']) ?></code></td> <td><?= $log['explanation'] ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> <?= $this->endSection() ?>
Annuler
Enregistrer
Switcher
Theme Styles
Theme Colors
Theme Color Mode:
Light
Dark
Menu Colors: