MediaWiki  1.33.0
MediaWiki\Logger\Monolog\CeeFormatter Class Reference

CeeFormatter extends LogstashFormatter to prefix records with a "cee cookie". More...

Inheritance diagram for MediaWiki\Logger\Monolog\CeeFormatter:
Collaboration diagram for MediaWiki\Logger\Monolog\CeeFormatter:

Public Member Functions

 format (array $record)
 Format records with a cee cookie. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Logger\Monolog\LogstashFormatter
 fixKeyConflicts (array $fields, array $context)
 Check whether some context field would overwrite another message key. More...
 
 formatV0 (array $record)
 Prevent key conflicts. More...
 
 formatV1 (array $record)
 Prevent key conflicts. More...
 
 normalizeException ( $e)
 Use a more user-friendly trace format than NormalizerFormatter. More...
 
- Protected Attributes inherited from MediaWiki\Logger\Monolog\LogstashFormatter
array $reservedKeys
 Keys which should not be used in log context. More...
 

Detailed Description

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

Compatible with Monolog 1.x only.

Since
1.33

Definition at line 14 of file CeeFormatter.php.

Member Function Documentation

◆ format()

MediaWiki\Logger\Monolog\CeeFormatter::format ( array  $record)

Format records with a cee cookie.

Parameters
array$record
Returns
array

Definition at line 20 of file CeeFormatter.php.

References format.


The documentation for this class was generated from the following file: