<?php
foreach ($logs as $log) { if ($log['priority'
] >= 400
) { $status = 'error';
} elseif ($log['priority'
] >= 300
) { $status = 'warning';
} else { $severity = 0;
if (($exception =
$log['context'
]['exception'
] ?? null
) instanceof \ErrorException ||
$exception instanceof \Symfony\Component\ErrorHandler\Exception\SilencedErrorContext
) { $severity =
$exception->
getSeverity();
} $status = \E_DEPRECATED ===
$severity || \E_USER_DEPRECATED ===
$severity ? 'warning' : 'normal';
} ?>
<tr class="status-<?=
$status; ?>" data-filter-level="<?=
strtolower($this->
escape($log['priorityName'
])); ?>"<?php
if ($channelIsDefined) { ?> data-filter-channel="<?=
$this->
escape($log['channel'
]); ?>"<?php
} ?>>
<td class="text-small nowrap">
<span class="colored text-bold"><?=
$this->
escape($log['priorityName'
]); ?></span>
<span class="text-muted newline"><?=
date('H:i:s',
$log['timestamp'
]); ?></span>
</td>
<?php
if ($channelIsDefined) { ?>
<td class="text-small text-bold nowrap">
<?=
$this->
escape($log['channel'
]); ?>