MediaWiki REL1_31
ConsoleLogger.php
Go to the documentation of this file.
1<?php
2
4
5use Psr\Log\AbstractLogger;
6
12class ConsoleLogger extends AbstractLogger {
13 public function __construct( $channel ) {
14 $this->channel = $channel;
15 }
16
17 public function log( $level, $message, array $context = [] ) {
18 fwrite( STDERR, "[$level] " .
19 LegacyLogger::format( $this->channel, $message, $context ) );
20 }
21}
A logger which writes to the terminal.
log( $level, $message, array $context=[])
static format( $channel, $message, $context)
Format a message.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
Definition hooks.txt:2811