3 namespace MediaWiki\Logger\Monolog
;
6 * CeeFormatter extends LogstashFormatter to prefix records with a "cee cookie".
7 * The cookie is used to tell JSON and non-JSON messages apart when logging to syslog.
8 * See also: https://www.rsyslog.com/doc/v8-stable/configuration/modules/mmjsonparse.html
10 * Compatible with Monolog 1.x only.
14 class CeeFormatter
extends LogstashFormatter
{
16 * Format records with a cee cookie
17 * @param array $record
20 public function format( array $record ) {
21 return "@cee: " . parent
::format( $record );