ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Formats incoming records into a one-line string. More...
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. More... | ||||
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... | ||||
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().
Monolog\Formatter\LineFormatter::allowInlineLineBreaks | ( | $allow = true | ) |
Definition at line 53 of file LineFormatter.php.
Referenced by Monolog\Formatter\LineFormatter\__construct(), Monolog\Formatter\LineFormatter\includeStacktraces(), and Monolog\Formatter\LineFormatter\replaceNewlines().
|
protected |
Definition at line 144 of file LineFormatter.php.
References $data, and Monolog\Formatter\NormalizerFormatter\toJson().
Referenced by Monolog\Formatter\LineFormatter\stringify().
Monolog\Formatter\LineFormatter::format | ( | array | $record | ) |
{Formats a log record.
array | $record | A record to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 66 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\$format, $output, format, and Monolog\Formatter\LineFormatter\ignoreEmptyContextAndExtra().
Referenced by Monolog\Formatter\LineFormatter\__construct(), and Monolog\Formatter\LineFormatter\formatBatch().
Monolog\Formatter\LineFormatter::formatBatch | ( | array | $records | ) |
Formats a set of log records.
array | $records | A set of records to format |
Implements Monolog\Formatter\FormatterInterface.
Definition at line 107 of file LineFormatter.php.
References $message, and Monolog\Formatter\LineFormatter\format().
Monolog\Formatter\LineFormatter::ignoreEmptyContextAndExtra | ( | $ignore = true | ) |
Definition at line 58 of file LineFormatter.php.
References $ignore.
Referenced by Monolog\Formatter\LineFormatter\__construct(), and Monolog\Formatter\LineFormatter\format().
Monolog\Formatter\LineFormatter::includeStacktraces | ( | $include = true | ) |
Definition at line 45 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\allowInlineLineBreaks().
Referenced by Monolog\Formatter\LineFormatter\normalizeException().
|
protected |
Definition at line 122 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\includeStacktraces().
|
protected |
Definition at line 161 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\allowInlineLineBreaks(), and array.
Referenced by Monolog\Formatter\LineFormatter\stringify().
Monolog\Formatter\LineFormatter::stringify | ( | $value | ) |
Definition at line 117 of file LineFormatter.php.
References Monolog\Formatter\LineFormatter\convertToString(), and Monolog\Formatter\LineFormatter\replaceNewlines().
|
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.