MediaWiki
1.33.1
|
Service provider interface for \Psr\Log\LoggerInterface implementation libraries. More...
Public Member Functions | |
getLogger ( $channel) | |
Get a logger instance. More... | |
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
MediaWiki can be configured to use a class implementing this interface to create new \Psr\Log\LoggerInterface instances via either the $wgMWLoggerDefaultSpi global variable or code that constructs an instance and registers it via the LoggerFactory::registerProvider() static method.
MediaWiki\Logger\Spi::getLogger | ( | $channel | ) |
Get a logger instance.
string | $channel | Logging channel |
Implemented in MediaWiki\Logger\MonologSpi, MediaWiki\Logger\NullSpi, MediaWiki\Logger\LegacySpi, MediaWiki\Logger\LogCapturingSpi, and MediaWiki\Logger\ConsoleSpi.
Referenced by MediaWiki\Logger\LogCapturingSpi\createLogger().