MediaWiki  master
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 }
PSR-3 logger that mimics the historic implementation of MediaWiki&#39;s former wfErrorLog logging impleme...
getLogger( $channel)
Get a logger instance.
Definition: LegacySpi.php:50
Service provider interface for \Psr\Log\LoggerInterface implementation libraries. ...
Definition: Spi.php:36
LoggerFactory service provider that creates LegacyLogger instances.
Definition: LegacySpi.php:37