Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
TranslateCliLogger.php
Go to the documentation of this file.
1<?php
10use Psr\Log\AbstractLogger;
11
12class TranslateCliLogger extends AbstractLogger {
14 private $logger;
15
16 public function __construct( callable $logger ) {
17 $this->logger = $logger;
18 }
19
20 public function log( $level, $msg, array $context = [] ) {
21 ( $this->logger )( "LOG $level: $msg" );
22 }
23}