MediaWiki fundraising/REL1_35
DonationLogProcessor.php
Go to the documentation of this file.
1<?php
2
9
10 protected $prefixer;
11
13 $this->prefixer = $prefixer;
14 }
15
16 public function __invoke( $record ) {
17 try {
18 $record['message'] = $this->prefixer->getLogMessagePrefix() . $record['message'];
19 }
20 catch ( Exception $ex ) {
21 // logging shouldn't throw any exceptions
22 }
23 return $record;
24 }
25}
Adds a prefix from a LogPrefixProvider to log messages.
__construct(LogPrefixProvider $prefixer)