MediaWiki
master
NullSpi.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Logger
;
22
23
use Psr\Log\NullLogger;
24
40
class
NullSpi
implements
Spi
{
41
45
protected
$singleton
;
46
47
public
function
__construct
() {
48
$this->singleton =
new
NullLogger();
49
}
50
57
public
function
getLogger
( $channel ) {
58
return
$this->singleton
;
59
}
60
61
}
MediaWiki\Logger\NullSpi
LoggerFactory service provider that creates \Psr\Log\NullLogger instances.
Definition
NullSpi.php:40
MediaWiki\Logger\NullSpi\__construct
__construct()
Definition
NullSpi.php:47
MediaWiki\Logger\NullSpi\$singleton
Psr Log NullLogger $singleton
Definition
NullSpi.php:45
MediaWiki\Logger\NullSpi\getLogger
getLogger( $channel)
Get a logger instance.
Definition
NullSpi.php:57
MediaWiki\Logger\Spi
Service provider interface to create \Psr\Log\LoggerInterface objects.
Definition
Spi.php:64
MediaWiki\Logger
Definition
ConsoleLogger.php:3
includes
debug
logger
NullSpi.php
Generated on Tue Dec 3 2024 15:23:43 for MediaWiki by
1.10.0