'\\MediaWiki\\Logger\\NullSpi', * ); * @endcode * * @see \\MediaWiki\\Logger\\LoggerFactory * @since 1.25 * @author Bryan Davis * @copyright © 2014 Bryan Davis and Wikimedia Foundation. */ class NullSpi implements Spi { /** * @var \\Psr\\Log\\NullLogger $singleton */ protected $singleton; public function __construct() { $this->singleton = new NullLogger(); } /** * Get a logger instance. * * @param string $channel Logging channel * @return \\Psr\\Log\\NullLogger Logger instance */ public function getLogger( $channel ) { return $this->singleton; } }