MediaWiki REL1_32
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:2885
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))