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 }
MediaWiki\Logger\ConsoleLogger
A logger which writes to the terminal.
Definition: ConsoleLogger.php:12
MediaWiki\Logger
Definition: ConsoleLogger.php:3
MediaWiki\Logger\ConsoleSpi\getLogger
getLogger( $channel)
Get a logger instance.
Definition: ConsoleSpi.php:9
MediaWiki\Logger\ConsoleSpi
Definition: ConsoleSpi.php:5
MediaWiki\Logger\ConsoleSpi\__construct
__construct( $config=[])
Definition: ConsoleSpi.php:6
MediaWiki\$config
Config $config
Definition: MediaWiki.php:42
MediaWiki\Logger\Spi
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
Definition: Spi.php:36