ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Formats incoming records into an HTML table. More...
Public Member Functions | ||||
__construct ($dateFormat=null) | ||||
format (array $record) | ||||
Formats a log record. More... | ||||
formatBatch (array $records) | ||||
Formats a set of log records. More... | ||||
Public Member Functions inherited from Monolog\Formatter\NormalizerFormatter | ||||
__construct ($dateFormat=null) | ||||
format (array $record) | ||||
{Formats a log record.
| ||||
formatBatch (array $records) | ||||
{Formats a set of log records.
| ||||
detectAndCleanUtf8 (&$data) | ||||
Detect invalid UTF-8 string characters and convert to valid UTF-8. More... | ||||
Protected Member Functions | |
addRow ($th, $td=' ', $escapeTd=true) | |
Creates an HTML table row. More... | |
addTitle ($title, $level) | |
Create a HTML h1 tag. More... | |
convertToString ($data) | |
Protected Member Functions inherited from Monolog\Formatter\NormalizerFormatter | |
normalize ($data) | |
normalizeException ($e) | |
toJson ($data, $ignoreErrors=false) | |
Return the JSON representation of a value. More... | |
Protected Attributes | |
$logLevels | |
Translates Monolog log levels to html color priorities. More... | |
Protected Attributes inherited from Monolog\Formatter\NormalizerFormatter | |
$dateFormat | |
Additional Inherited Members | |
Data Fields inherited from Monolog\Formatter\NormalizerFormatter | |
const | SIMPLE_DATE = "Y-m-d H:i:s" |
Formats incoming records into an HTML table.
This is especially useful for html email logging
Definition at line 22 of file HtmlFormatter.php.
Monolog\Formatter\HtmlFormatter::__construct | ( | $dateFormat = null | ) |
string | $dateFormat | The format of the timestamp: one supported by DateTime::format |
Definition at line 41 of file HtmlFormatter.php.
References Monolog\Formatter\NormalizerFormatter\$dateFormat.
|
protected |
Creates an HTML table row.
string | $th | Row header content |
string | $td | Row standard cell content |
bool | $escapeTd | false if td content must not be html escaped |
Definition at line 54 of file HtmlFormatter.php.
Referenced by Monolog\Formatter\HtmlFormatter\format().
|
protected |
Create a HTML h1 tag.
string | $title | Text to be in the h1 |
int | $level | Error level |
Definition at line 71 of file HtmlFormatter.php.
References $title.
Referenced by Monolog\Formatter\HtmlFormatter\format().
|
protected |
Definition at line 128 of file HtmlFormatter.php.
References $data, and Monolog\Formatter\NormalizerFormatter\normalize().
Referenced by Monolog\Formatter\HtmlFormatter\format().
Monolog\Formatter\HtmlFormatter::format | ( | array | $record | ) |
Formats a log record.
array | $record | A record to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 84 of file HtmlFormatter.php.
References $key, $output, Monolog\Formatter\HtmlFormatter\addRow(), Monolog\Formatter\HtmlFormatter\addTitle(), and Monolog\Formatter\HtmlFormatter\convertToString().
Referenced by Monolog\Formatter\HtmlFormatter\formatBatch().
Monolog\Formatter\HtmlFormatter::formatBatch | ( | array | $records | ) |
Formats a set of log records.
array | $records | A set of records to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 118 of file HtmlFormatter.php.
References $message, and Monolog\Formatter\HtmlFormatter\format().
|
protected |
Translates Monolog log levels to html color priorities.
Definition at line 27 of file HtmlFormatter.php.