MediaWiki 1.39.10
|
CeeFormatter extends LogstashFormatter to prefix records with a "cee cookie". More...
Public Member Functions | |
format (array $record) | |
Format records with a cee cookie. | |
Public Member Functions inherited from MediaWiki\Logger\Monolog\LogstashFormatter | |
__construct (string $applicationName, ?string $systemName=null, string $extraKey='', string $contextKey='ctxt_', $version=self::V0) | |
TODO: See T247675 for removing this override. | |
Additional Inherited Members | |
Public Attributes inherited from MediaWiki\Logger\Monolog\LogstashFormatter | |
const | V0 = 0 |
const | V1 = 1 |
Protected Member Functions inherited from MediaWiki\Logger\Monolog\LogstashFormatter | |
fixKeyConflicts (array $fields, array $context) | |
Rename any context field that would otherwise overwrite a message key. | |
formatMonologV0 (array $record) | |
Borrowed from monolog/monolog 1.25.3 https://github.com/Seldaek/monolog/blob/1.x/src/Monolog/Formatter/LogstashFormatter.php#L87-L128. | |
formatMonologV1 (array $record) | |
Borrowed mostly from monolog/monolog 1.25.3 https://github.com/Seldaek/monolog/blob/1.25.3/src/Monolog/Formatter/LogstashFormatter.php#L130-165. | |
formatV0 (array $record) | |
Prevent key conflicts. | |
formatV1 (array $record) | |
Prevent key conflicts. | |
normalizeException (\Throwable $e, int $depth=0) | |
Use a more user-friendly trace format than Monolog\Formatter\NormalizerFormatter. | |
Protected Attributes inherited from MediaWiki\Logger\Monolog\LogstashFormatter | |
array | $reservedKeys |
Keys which should not be used in log context. | |
int | $version |
Logstash format version to use. | |
CeeFormatter extends LogstashFormatter to prefix records with a "cee cookie".
The cookie is used to tell JSON and non-JSON messages apart when logging to syslog. See also: https://www.rsyslog.com/doc/v8-stable/configuration/modules/mmjsonparse.html
Definition at line 12 of file CeeFormatter.php.
MediaWiki\Logger\Monolog\CeeFormatter::format | ( | array | $record | ) |
Format records with a cee cookie.
array | $record |
Reimplemented from MediaWiki\Logger\Monolog\LogstashFormatter.
Definition at line 18 of file CeeFormatter.php.