MediaWiki master
LegacyFormatter.php
Go to the documentation of this file.
1<?php
8
10use Monolog\Formatter\NormalizerFormatter;
11use Monolog\LogRecord;
12
23class LegacyFormatter extends NormalizerFormatter {
24
25 public function __construct() {
26 parent::__construct( 'c' );
27 }
28
29 public function format( array|LogRecord $record ): string {
30 $normalized = parent::format( $record );
32 $normalized['channel'], $normalized['message'], $normalized
33 );
34 }
35}
PSR-3 logger that mimics the historic implementation of MediaWiki's former wfErrorLog logging impleme...
static format( $channel, $message, $context)
Format a message.
Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog,...