mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-01-31 01:38:40 +00:00
75 lines
2.7 KiB
PHP
75 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
|
|
$log = $this->app->logger->getByLine((int) $this->request->getData('id') ?? 1);
|
|
$temp = trim($log['backtrace']);
|
|
$log['backtrace'] = json_decode($temp, true);
|
|
|
|
echo $this->getData('nav')->render(); ?>
|
|
|
|
<section class="box w-100">
|
|
<h1><?= $this->l11n->lang['Monitoring']['Logs']; ?></h1>
|
|
|
|
<div class="inner">
|
|
<table class="list w-100">
|
|
<tr>
|
|
<td><?= $this->l11n->lang[0]['ID']; ?>
|
|
<td><i class="fa fa-anchor"></i>
|
|
<td class="wf-100"><?= (int) $this->request->getData('id') ?? 0; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Time']; ?>
|
|
<td><i class="fa fa-clock-o"></i>
|
|
<td><?= $log['datetime']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Source']; ?>
|
|
<td><i class="fa fa-wifi"></i>
|
|
<td><?= $log['ip']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Level']; ?>
|
|
<td><i class="fa fa-<?= in_array($log['level'], ['notice', 'info', 'debug']) ? 'info-circle' : 'warning'; ?>"></i>
|
|
<td><?= $log['level']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Message']; ?>
|
|
<td><i class="fa fa-commenting"></i>
|
|
<td><?= $log['message']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['File']; ?>
|
|
<td><i class="fa fa-file"></i>
|
|
<td><?= $log['file']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Line']; ?>
|
|
<td><i class="fa fa-commenting"></i>
|
|
<td><?= $log['line']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['Version']; ?>
|
|
<td><i class="fa fa-pencil"></i>
|
|
<td><?= $log['version']; ?>
|
|
<tr>
|
|
<td><?= $this->l11n->lang['Monitoring']['OS']; ?>
|
|
<td><i class="fa fa-laptop"></i>
|
|
<td><?= $log['os']; ?>
|
|
<tr>
|
|
<td colspan="3"><?= $this->l11n->lang['Monitoring']['Backtrace']; ?>
|
|
<tr>
|
|
<td colspan="3">
|
|
<pre><?= json_encode($log['backtrace'], JSON_PRETTY_PRINT); ?></pre>
|
|
</table>
|
|
</div>
|
|
</section>
|