|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Formats incoming records into a one-line string. More...
Inheritance diagram for Monolog\Formatter\LineFormatter:
Collaboration diagram for Monolog\Formatter\LineFormatter:Public Member Functions | ||||
| __construct ($format=null, $dateFormat=null, $allowInlineLineBreaks=false, $ignoreEmptyContextAndExtra=false) | ||||
| includeStacktraces ($include=true) | ||||
| allowInlineLineBreaks ($allow=true) | ||||
| ignoreEmptyContextAndExtra ($ignore=true) | ||||
| format (array $record) | ||||
{{Formats a log record.
| ||||
| formatBatch (array $records) | ||||
{{Formats a set of log records.
| ||||
| stringify ($value) | ||||
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... | ||||
| format (array $record) | ||||
| Formats a log record. More... | ||||
| formatBatch (array $records) | ||||
| Formats a set of log records. More... | ||||
Data Fields | |
| const | SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n" |
Data Fields inherited from Monolog\Formatter\NormalizerFormatter | |
| const | SIMPLE_DATE = "Y-m-d H:i:s" |
Protected Member Functions | |
| normalizeException ($e) | |
| convertToString ($data) | |
| replaceNewlines ($str) | |
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 | |
| $format | |
| $allowInlineLineBreaks | |
| $ignoreEmptyContextAndExtra | |
| $includeStacktraces | |
Protected Attributes inherited from Monolog\Formatter\NormalizerFormatter | |
| $dateFormat | |
Formats incoming records into a one-line string.
This is especially useful for logging to files
Definition at line 22 of file LineFormatter.php.
| Monolog\Formatter\LineFormatter::__construct | ( | $format = null, |
|
$dateFormat = null, |
|||
$allowInlineLineBreaks = false, |
|||
$ignoreEmptyContextAndExtra = false |
|||
| ) |
| string | $format | The format of the message |
| string | $dateFormat | The format of the timestamp: one supported by DateTime::format |
| bool | $allowInlineLineBreaks | Whether to allow inline line breaks in log entries |
| bool | $ignoreEmptyContextAndExtra |
Definition at line 37 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\$allowInlineLineBreaks, Monolog\Formatter\NormalizerFormatter\$dateFormat, Monolog\Formatter\LineFormatter\$format, Monolog\Formatter\LineFormatter\$ignoreEmptyContextAndExtra, Monolog\Formatter\LineFormatter\allowInlineLineBreaks(), Monolog\Formatter\LineFormatter\format(), and Monolog\Formatter\LineFormatter\ignoreEmptyContextAndExtra().
Here is the call graph for this function:| Monolog\Formatter\LineFormatter::allowInlineLineBreaks | ( | $allow = true | ) |
Definition at line 53 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\allowInlineLineBreaks().
Referenced by Monolog\Formatter\LineFormatter\__construct(), Monolog\Formatter\LineFormatter\allowInlineLineBreaks(), Monolog\Formatter\LineFormatter\includeStacktraces(), and Monolog\Formatter\LineFormatter\replaceNewlines().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 144 of file LineFormatter.php.
References $data, and Monolog\Formatter\NormalizerFormatter\toJson().
Referenced by Monolog\Formatter\LineFormatter\stringify().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Formatter\LineFormatter::format | ( | array | $record | ) |
{{Formats a log record.
| array | $record | A record to format |
Reimplemented from Monolog\Formatter\NormalizerFormatter.
Reimplemented in ilLineFormatter.
Definition at line 66 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\$format, $output, and Monolog\Formatter\LineFormatter\ignoreEmptyContextAndExtra().
Referenced by Monolog\Formatter\LineFormatter\__construct(), and Monolog\Formatter\LineFormatter\formatBatch().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Formatter\LineFormatter::formatBatch | ( | array | $records | ) |
{{Formats a set of log records.
| array | $records | A set of records to format |
Reimplemented from Monolog\Formatter\NormalizerFormatter.
Definition at line 107 of file LineFormatter.php.
References $records, and Monolog\Formatter\LineFormatter\format().
Here is the call graph for this function:| Monolog\Formatter\LineFormatter::ignoreEmptyContextAndExtra | ( | $ignore = true | ) |
Definition at line 58 of file LineFormatter.php.
References $ignore, and Monolog\Formatter\LineFormatter\ignoreEmptyContextAndExtra().
Referenced by Monolog\Formatter\LineFormatter\__construct(), Monolog\Formatter\LineFormatter\format(), and Monolog\Formatter\LineFormatter\ignoreEmptyContextAndExtra().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Formatter\LineFormatter::includeStacktraces | ( | $include = true | ) |
Definition at line 45 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\allowInlineLineBreaks(), and Monolog\Formatter\LineFormatter\includeStacktraces().
Referenced by Monolog\Formatter\LineFormatter\includeStacktraces(), and Monolog\Formatter\LineFormatter\normalizeException().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from Monolog\Formatter\NormalizerFormatter.
Definition at line 122 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\includeStacktraces().
Here is the call graph for this function:
|
protected |
Definition at line 161 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\allowInlineLineBreaks().
Referenced by Monolog\Formatter\LineFormatter\stringify().
Here is the call graph for this function:
Here is the caller graph for this function:| Monolog\Formatter\LineFormatter::stringify | ( | $value | ) |
Definition at line 117 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\convertToString(), and Monolog\Formatter\LineFormatter\replaceNewlines().
Here is the call graph for this function:
|
protected |
Definition at line 27 of file LineFormatter.php.
Referenced by Monolog\Formatter\LineFormatter\__construct().
|
protected |
Definition at line 26 of file LineFormatter.php.
Referenced by Monolog\Formatter\LineFormatter\__construct(), and Monolog\Formatter\LineFormatter\format().
|
protected |
Definition at line 28 of file LineFormatter.php.
Referenced by Monolog\Formatter\LineFormatter\__construct().
|
protected |
Definition at line 29 of file LineFormatter.php.
| const Monolog\Formatter\LineFormatter::SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n" |
Definition at line 24 of file LineFormatter.php.