* @copyright © 2014 Bryan Davis and Wikimedia Foundation. */ class MWLoggerNullSpi implements MWLoggerSpi { /** * @var \Psr\Log\NullLogger $singleton */ protected $singleton; public function __construct() { $this->singleton = new \Psr\Log\NullLogger(); } /** * Get a logger instance. * * @param string $channel Logging channel * @return MWLogger Logger instance */ public function getLogger( $channel ) { return $this->singleton; } }