54 protected function addRow($th, $td =
' ', $escapeTd =
true)
56 $th = htmlspecialchars($th, ENT_NOQUOTES,
'UTF-8');
58 $td =
'<pre>'.htmlspecialchars($td, ENT_NOQUOTES,
'UTF-8').
'</pre>';
61 return "<tr style=\"padding: 4px;spacing: 0;text-align: left;\">\n<th style=\"background: #cccccc\" width=\"100px\">$th:</th>\n<td style=\"padding: 4px;spacing: 0;text-align: left;background: #eeeeee\">".$td.
"</td>\n</tr>";
73 $title = htmlspecialchars(
$title, ENT_NOQUOTES,
'UTF-8');
75 return '<h1 style="background: '.$this->logLevels[$level].
';color: #ffffff;padding: 5px;" class="monolog-output">'.
$title.
'</h1>';
87 $output .=
'<table cellspacing="1" width="100%" class="monolog-output">';
89 $output .= $this->
addRow(
'Message', (
string) $record[
'message']);
92 if ($record[
'context']) {
93 $embeddedTable =
'<table cellspacing="1" width="100%">';
94 foreach ($record[
'context'] as
$key => $value) {
97 $embeddedTable .=
'</table>';
100 if ($record[
'extra']) {
101 $embeddedTable =
'<table cellspacing="1" width="100%">';
102 foreach ($record[
'extra'] as
$key => $value) {
105 $embeddedTable .=
'</table>';
121 foreach ($records as $record) {
131 return (
string)
$data;
135 if (version_compare(PHP_VERSION,
'5.4.0',
'>=')) {
136 return json_encode(
$data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
139 return str_replace(
'\\/',
'/', json_encode(
$data));
const NOTICE
Uncommon events.
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
catch(Exception $e) $message
const WARNING
Exceptional occurrences that are not errors.
const EMERGENCY
Urgent alert.
Create styles array
The data for the language used.
const CRITICAL
Critical conditions.
const ALERT
Action must be taken immediately.
const INFO
Interesting events.