5 <table
class=
"table table-condensed table-bordered table-striped table-hover table-filtered" style=
"table-layout: fixed;">
8 <th style=
"width: 100px;">Time</th>
9 <th style=
"width: 65px;">Level</th>
10 <th style=
"width: 250px;">Category</th>
15 <?php
foreach (
$data[
'messages'] as $log): ?>
17 list ($message, $level, $category, $time, $traces) = $log;
20 case CLogger::LEVEL_ERROR:
21 $firstError = !isset($firstError);
22 if ($firstError)
$rowOpt =
'id="first-error"';
24 case CLogger::LEVEL_WARNING:
25 $firstWarning = !isset($firstWarning);
26 if ($firstWarning)
$rowOpt =
'id="first-warning"';
28 case CLogger::LEVEL_INFO:
29 $firstInfo = !isset($firstInfo);
30 if ($firstInfo)
$rowOpt =
'id="first-info"';
34 case CLogger::LEVEL_ERROR:
$class =
'error';
break;
35 case CLogger::LEVEL_WARNING:
$class =
'warning';
break;
36 case CLogger::LEVEL_INFO:
$class =
'info';
break;
37 default:
$class =
'';
break;
40 <tr <?php echo $rowOpt; ?>
class=
"<?php echo $class; ?>">
41 <td style=
"width:100px"><?php echo $time; ?></td>
42 <td style=
"width:100px"><?php echo $level; ?></td>
43 <td style=
"width:250px"><?php echo $category; ?></td>
45 <div style=
"overflow:auto">
47 <?php echo nl2br(CHtml::encode($message)); ?>
49 <div
class=
"src <?php echo $this->highlightCode ? 'hl' : 'no-hl'; ?>"><?php
50 CVarDumper::dump(@unserialize($message), 10, $this->highlightCode);
53 <?php
if (!empty($traces)): ?>
55 <?php
foreach ($traces as $trace): ?>
57 <?php echo CHtml::encode($trace); ?>