MediaWiki
REL1_37
NullSpi.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Logger
;
22
23
use Psr\Log\NullLogger;
24
39
class
NullSpi
implements
Spi
{
40
44
protected
$singleton
;
45
46
public
function
__construct
() {
47
$this->singleton =
new
NullLogger();
48
}
49
56
public
function
getLogger
( $channel ) {
57
return
$this->singleton
;
58
}
59
60
}
MediaWiki\Logger\NullSpi
LoggerFactory service provider that creates \Psr\Log\NullLogger instances.
Definition
NullSpi.php:39
MediaWiki\Logger\NullSpi\__construct
__construct()
Definition
NullSpi.php:46
MediaWiki\Logger\NullSpi\$singleton
Psr Log NullLogger $singleton
Definition
NullSpi.php:44
MediaWiki\Logger\NullSpi\getLogger
getLogger( $channel)
Get a logger instance.
Definition
NullSpi.php:56
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
NullSpi.php
Generated on Fri Apr 5 2024 23:40:10 for MediaWiki by
1.9.8