MediaWiki REL1_37
NullSpi.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Logger;
22
23use Psr\Log\NullLogger;
24
39class NullSpi implements Spi {
40
44 protected $singleton;
45
46 public function __construct() {
47 $this->singleton = new NullLogger();
48 }
49
56 public function getLogger( $channel ) {
57 return $this->singleton;
58 }
59
60}
LoggerFactory service provider that creates \Psr\Log\NullLogger instances.
Definition NullSpi.php:39
Psr Log NullLogger $singleton
Definition NullSpi.php:44
getLogger( $channel)
Get a logger instance.
Definition NullSpi.php:56
Service provider interface for \Psr\Log\LoggerInterface implementation libraries.
Definition Spi.php:38