38 $e = new \Exception(
'boom!' );
56 'greeting' =>
'Goodnight',
67 '{ not interpolated }',
69 'not interpolated' =>
'This should NOT show up in the message',
71 '{ not interpolated }',
97 'array' => [ 1, 2, 3 ],
106 '[Exception ' . get_class(
$e ) .
'( ' .
107 $e->getFile() .
':' .
$e->getLine() .
') ' .
108 $e->getMessage() .
']',
120 'object' => new \stdClass,
132 $this->
setMwGlobals(
'wgDebugLogGroups', [
'fakechannel' => $config ] );
140 $dest = [
'destination' =>
'foobar' ];
149 $dest + [
'level' => LogLevel::INFO ],
154 $dest + [
'level' => LogLevel::CRITICAL ],
159 if ( class_exists(
'\Monolog\Logger' ) ) {
161 \Monolog\Logger::INFO,
162 $dest + [
'level' => LogLevel::INFO ],
166 \Monolog\Logger::WARNING,
167 $dest + [
'level' => LogLevel::EMERGENCY ],
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
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
returning false will NOT prevent logging $e