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