MediaWiki
REL1_30
LegacyFormatter.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Logger\Monolog
;
22
23
use
MediaWiki\Logger\LegacyLogger
;
24
use Monolog\Formatter\NormalizerFormatter;
25
35
class
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 );
43
return
LegacyLogger::format
(
44
$normalized[
'channel'
], $normalized[
'message'
], $normalized
45
);
46
}
47
}
MediaWiki\Logger\LegacyLogger
PSR-3 logger that mimics the historic implementation of MediaWiki's wfErrorLog logging implementation...
Definition
LegacyLogger.php:48
MediaWiki\Logger\LegacyLogger\format
static format( $channel, $message, $context)
Format a message.
Definition
LegacyLogger.php:205
MediaWiki\Logger\Monolog\LegacyFormatter
Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog,...
Definition
LegacyFormatter.php:35
MediaWiki\Logger\Monolog\LegacyFormatter\__construct
__construct()
Definition
LegacyFormatter.php:37
MediaWiki\Logger\Monolog\LegacyFormatter\format
format(array $record)
Definition
LegacyFormatter.php:41
MediaWiki\Logger\Monolog
Definition
AvroFormatter.php:21
includes
debug
logger
monolog
LegacyFormatter.php
Generated on Mon Nov 25 2024 15:42:14 for MediaWiki by
1.10.0