MediaWiki master
ContextProcessor.php
Go to the documentation of this file.
1<?php
2
4
6
12
17 public function __invoke( array $record ) {
18 $record['context'] += LoggerFactory::getContext()->get();
19 return $record;
20 }
21
22}
Create PSR-3 logger objects.
static getContext()
Get a logging context, which can be used to add information to all log events.
Annotate log records with the context added via LoggerFactory::getContext().