MediaWiki master
|
The default service provider for MediaWiki\Logger\LoggerFactory, which creates LegacyLogger objects. More...
Inherits MediaWiki\Logger\Spi.
Public Member Functions | |
getLogger ( $channel) | |
Get a logger instance. | |
setLoggerForTest ( $channel, LoggerInterface $logger=null) | |
Protected Attributes | |
array | $singletons = [] |
The default service provider for MediaWiki\Logger\LoggerFactory, which creates LegacyLogger objects.
Usage:
Definition at line 40 of file LegacySpi.php.
MediaWiki\Logger\LegacySpi::getLogger | ( | $channel | ) |
Get a logger instance.
string | $channel | Logging channel |
Implements MediaWiki\Logger\Spi.
Definition at line 53 of file LegacySpi.php.
MediaWiki\Logger\LegacySpi::setLoggerForTest | ( | $channel, | |
LoggerInterface | $logger = null ) |
string | $channel | |
LoggerInterface | null | $logger |
Definition at line 66 of file LegacySpi.php.
|
protected |
Definition at line 45 of file LegacySpi.php.