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