MediaWiki
1.28.0
|
LoggerFactory service provider that creates \Psr\Log\NullLogger instances. More...
Public Member Functions | |
__construct () | |
getLogger ($channel) | |
Get a logger instance. More... | |
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', ];
Definition at line 40 of file NullSpi.php.
MediaWiki\Logger\NullSpi::__construct | ( | ) |
Definition at line 47 of file NullSpi.php.
MediaWiki\Logger\NullSpi::getLogger | ( | $channel | ) |
Get a logger instance.
string | $channel | Logging channel |
Implements MediaWiki\Logger\Spi.
Definition at line 57 of file NullSpi.php.
References MediaWiki\Logger\NullSpi\$singleton.
|
protected |
Definition at line 45 of file NullSpi.php.
Referenced by MediaWiki\Logger\NullSpi\getLogger().