MediaWiki REL1_30
LegacyFormatter.php
Go to the documentation of this file.
1<?php
22
24use Monolog\Formatter\NormalizerFormatter;
25
35class LegacyFormatter extends NormalizerFormatter {
36
37 public function __construct() {
38 parent::__construct( 'c' );
39 }
40
41 public function format( array $record ) {
42 $normalized = parent::format( $record );
44 $normalized['channel'], $normalized['message'], $normalized
45 );
46 }
47}
PSR-3 logger that mimics the historic implementation of MediaWiki's wfErrorLog logging implementation...
static format( $channel, $message, $context)
Format a message.
Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog,...