MediaWiki
REL1_31
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 wfErrorLog logging implementation...
Definition
LegacyLogger.php:48
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 Mon Nov 25 2024 15:34:40 for MediaWiki by
1.10.0