MediaWiki REL1_40
LegacyFormatter.php
Go to the documentation of this file.
1<?php
22
24use Monolog\Formatter\NormalizerFormatter;
25
36class LegacyFormatter extends NormalizerFormatter {
37
38 public function __construct() {
39 parent::__construct( 'c' );
40 }
41
42 public function format( array $record ): string {
43 $normalized = parent::format( $record );
45 $normalized['channel'], $normalized['message'], $normalized
46 );
47 }
48}
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,...