19 'message',
'channel',
'level',
'type',
21 'url',
'ip',
'http_method',
'server',
'referrer',
23 'host',
'wiki',
'reqId',
'mwversion',
34 if ( $this->contextPrefix ) {
35 return parent::formatV0( $record );
38 $context = !empty( $record[
'context'] ) ? $record[
'context'] : [];
39 $record[
'context'] = [];
40 $formatted = parent::formatV0( $record );
52 if ( $this->contextPrefix ) {
53 return parent::formatV1( $record );
56 $context = !empty( $record[
'context'] ) ? $record[
'context'] : [];
57 $record[
'context'] = [];
58 $formatted = parent::formatV1( $record );
72 foreach (
$context as $key => $val ) {
74 in_array( $key, $this->reservedKeys,
true ) &&
75 isset( $fields[$key] ) && $fields[$key] !== $val
77 $fields[
'logstash_formatter_key_conflict'][] = $key;
91 if ( !
$e instanceof \Exception && !
$e instanceof \Throwable ) {
92 throw new \InvalidArgumentException(
'Exception/Throwable expected, got '
93 . gettype(
$e ) .
' / ' . get_class(
$e ) );
97 'class' => get_class(
$e ),
98 'message' =>
$e->getMessage(),
99 'code' =>
$e->getCode(),
100 'file' =>
$e->getFile() .
':' .
$e->getLine(),
101 'trace' => \MWExceptionHandler::getRedactedTraceAsString(
$e ),
104 $previous =
$e->getPrevious();
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
returning false will NOT prevent logging $e
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))