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