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