%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/yiisoft/yii2-debug/src/views/default/panels/log/ |
Upload File : |
<?php use yii\grid\GridView; use yii\helpers\Html; use yii\helpers\VarDumper; use yii\log\Logger; /* @var $panel yii\debug\panels\LogPanel */ /* @var $searchModel yii\debug\models\search\Log */ /* @var $dataProvider yii\data\ArrayDataProvider */ ?> <h1>Log Messages</h1> <?php echo GridView::widget([ 'dataProvider' => $dataProvider, 'id' => 'log-panel-detailed-grid', 'options' => ['class' => ['detail-grid-view', 'table-responsive', 'logs-messages-table']], 'filterModel' => $searchModel, 'filterUrl' => $panel->getUrl(), 'rowOptions' => function ($model) { switch ($model['level']) { case Logger::LEVEL_ERROR : return ['class' => 'table-danger']; case Logger::LEVEL_WARNING : return ['class' => 'table-warning']; case Logger::LEVEL_INFO : return ['class' => 'table-success']; default: return []; } }, 'pager' => [ 'linkContainerOptions' => [ 'class' => 'page-item' ], 'linkOptions' => [ 'class' => 'page-link' ], 'disabledListItemSubTagOptions' => [ 'tag' => 'a', 'href' => 'javascript:;', 'tabindex' => '-1', 'class' => 'page-link' ] ], 'columns' => [ [ 'attribute' => 'time', 'value' => function ($data) { $timeInSeconds = $data['time'] / 1000; $millisecondsDiff = (int)(($timeInSeconds - (int)$timeInSeconds) * 1000); return date('H:i:s.', $timeInSeconds) . sprintf('%03d', $millisecondsDiff); }, 'headerOptions' => [ 'class' => 'sort-numerical' ] ], [ 'attribute' => 'level', 'value' => function ($data) { return Logger::getLevelName($data['level']); }, 'filter' => [ Logger::LEVEL_TRACE => ' Trace ', Logger::LEVEL_INFO => ' Info ', Logger::LEVEL_WARNING => ' Warning ', Logger::LEVEL_ERROR => ' Error ', ], ], 'category', [ 'attribute' => 'message', 'value' => function ($data) use ($panel) { $message = Html::encode(is_string($data['message']) ? $data['message'] : VarDumper::export($data['message'])); if (!empty($data['trace'])) { $message .= Html::ul($data['trace'], [ 'class' => 'trace', 'item' => function ($trace) use ($panel) { return '<li>' . $panel->getTraceLine($trace) . '</li>'; } ]); } return $message; }, 'format' => 'raw', 'options' => [ 'width' => '50%', ], ], ], ]);