ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Encodes message information into JSON in a format compatible with Loggly. More...
Public Member Functions | ||||
__construct ($batchMode=self::BATCH_MODE_NEWLINES, $appendNewline=false) | ||||
Overrides the default batch mode to new lines for compatibility with the Loggly bulk API. More... | ||||
format (array $record) | ||||
Appends the 'timestamp' parameter for indexing by Loggly. More... | ||||
Public Member Functions inherited from Monolog\Formatter\JsonFormatter | ||||
__construct ($batchMode=self::BATCH_MODE_JSON, $appendNewline=true) | ||||
getBatchMode () | ||||
The batch mode option configures the formatting style for multiple records. More... | ||||
isAppendingNewlines () | ||||
True if newlines are appended to every formatted record. More... | ||||
format (array $record) | ||||
{Formats a log record.
| ||||
formatBatch (array $records) | ||||
{Formats a set of log records.
| ||||
includeStacktraces ($include=true) | ||||
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... | ||||
Additional Inherited Members | |
Data Fields inherited from Monolog\Formatter\JsonFormatter | |
const | BATCH_MODE_JSON = 1 |
const | BATCH_MODE_NEWLINES = 2 |
Data Fields inherited from Monolog\Formatter\NormalizerFormatter | |
const | SIMPLE_DATE = "Y-m-d H:i:s" |
Protected Member Functions inherited from Monolog\Formatter\JsonFormatter | |
formatBatchJson (array $records) | |
Return a JSON-encoded array of records. More... | |
formatBatchNewlines (array $records) | |
Use new lines to separate records instead of a JSON-encoded array. More... | |
normalize ($data, $depth=0) | |
Normalizes given $data. More... | |
normalizeException ($e) | |
Normalizes given exception with or without its own stack trace based on includeStacktraces property. More... | |
Protected Member Functions inherited from Monolog\Formatter\NormalizerFormatter | |
normalize ($data, $depth=0) | |
normalizeException ($e) | |
toJson ($data, $ignoreErrors=false) | |
Return the JSON representation of a value. More... | |
Protected Attributes inherited from Monolog\Formatter\JsonFormatter | |
$batchMode | |
$appendNewline | |
$includeStacktraces = false | |
Protected Attributes inherited from Monolog\Formatter\NormalizerFormatter | |
$dateFormat | |
Encodes message information into JSON in a format compatible with Loggly.
Definition at line 19 of file LogglyFormatter.php.
Monolog\Formatter\LogglyFormatter::__construct | ( | $batchMode = self::BATCH_MODE_NEWLINES , |
|
$appendNewline = false |
|||
) |
Overrides the default batch mode to new lines for compatibility with the Loggly bulk API.
int | $batchMode |
Definition at line 27 of file LogglyFormatter.php.
References Monolog\Formatter\JsonFormatter\$appendNewline, and Monolog\Formatter\JsonFormatter\$batchMode.
Monolog\Formatter\LogglyFormatter::format | ( | array | $record | ) |
Appends the 'timestamp' parameter for indexing by Loggly.
Implements Monolog\Formatter\FormatterInterface.
Definition at line 38 of file LogglyFormatter.php.