MediaWiki master
LegacyFormatter.php
Go to the documentation of this file.
1<?php
8
10use Monolog\Formatter\NormalizerFormatter;
11
22class LegacyFormatter extends NormalizerFormatter {
23
24 public function __construct() {
25 parent::__construct( 'c' );
26 }
27
28 public function format( array $record ): string {
29 $normalized = parent::format( $record );
31 $normalized['channel'], $normalized['message'], $normalized
32 );
33 }
34}
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,...