MediaWiki REL1_30
LegacySpi.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Logger;
22
37class 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}
PSR-3 logger that mimics the historic implementation of MediaWiki's wfErrorLog logging implementation...
LoggerFactory service provider that creates LegacyLogger instances.
Definition LegacySpi.php:37
getLogger( $channel)
Get a logger instance.
Definition LegacySpi.php:50
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
Definition Spi.php:36