MediaWiki  master
ConsoleSpi.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Logger;
4 
5 class ConsoleSpi implements Spi {
6  public function __construct( $config = [] ) {
7  }
8 
9  public function getLogger( $channel ) {
10  return new ConsoleLogger( $channel );
11  }
12 }
Config $config
Definition: MediaWiki.php:39
A logger which writes to the terminal.
Service provider interface for \Psr\Log\LoggerInterface implementation libraries. ...
Definition: Spi.php:36
getLogger( $channel)
Get a logger instance.
Definition: ConsoleSpi.php:9