MediaWiki
REL1_34
LegacySpi.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Logger
;
22
37
class
LegacySpi
implements
Spi
{
38
42
protected
$singletons
= [];
43
50
public
function
getLogger
( $channel ) {
51
if
( !isset( $this->singletons[$channel] ) ) {
52
$this->singletons[$channel] =
new
LegacyLogger
( $channel );
53
}
54
return
$this->singletons[$channel];
55
}
56
57
}
MediaWiki\Logger\LegacyLogger
PSR-3 logger that mimics the historic implementation of MediaWiki's former wfErrorLog logging impleme...
Definition
LegacyLogger.php:51
MediaWiki\Logger\LegacySpi
LoggerFactory service provider that creates LegacyLogger instances.
Definition
LegacySpi.php:37
MediaWiki\Logger\LegacySpi\getLogger
getLogger( $channel)
Get a logger instance.
Definition
LegacySpi.php:50
MediaWiki\Logger\LegacySpi\$singletons
$singletons
Definition
LegacySpi.php:42
MediaWiki\Logger\Spi
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
Definition
Spi.php:36
MediaWiki\Logger
Definition
ConsoleLogger.php:3
includes
debug
logger
LegacySpi.php
Generated on Fri Apr 5 2024 23:09:48 for MediaWiki by
1.9.8