MediaWiki
REL1_37
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\ConsoleSpi
Definition
ConsoleSpi.php:5
MediaWiki\Logger\ConsoleSpi\getLogger
getLogger( $channel)
Get a logger instance.
Definition
ConsoleSpi.php:9
MediaWiki\Logger\ConsoleSpi\__construct
__construct( $config=[])
Definition
ConsoleSpi.php:6
MediaWiki\Logger\Spi
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
Definition
Spi.php:38
MediaWiki\Logger
Definition
ConsoleLogger.php:3
includes
debug
logger
ConsoleSpi.php
Generated on Fri Apr 5 2024 23:40:09 for MediaWiki by
1.9.8