MediaWiki REL1_31
|
LoggerFactory service provider that creates \Psr\Log\NullLogger instances. More...
Public Member Functions | |
__construct () | |
getLogger ( $channel) | |
Get a logger instance. | |
Protected Attributes | |
$singleton | |
LoggerFactory service provider that creates \Psr\Log\NullLogger instances.
A NullLogger silently discards all log events sent to it.
Usage:
$wgMWLoggerDefaultSpi = [ 'class' => \\MediaWiki\\Logger\\NullSpi::class, ];
Definition at line 39 of file NullSpi.php.
MediaWiki\Logger\NullSpi::__construct | ( | ) |
Definition at line 46 of file NullSpi.php.
MediaWiki\Logger\NullSpi::getLogger | ( | $channel | ) |
Get a logger instance.
string | $channel | Logging channel |
Implements MediaWiki\Logger\Spi.
Definition at line 56 of file NullSpi.php.
References MediaWiki\Logger\NullSpi\$singleton.
|
protected |
Definition at line 44 of file NullSpi.php.
Referenced by MediaWiki\Logger\NullSpi\getLogger().