* @file
*/
+namespace MediaWiki\Logger;
+
+use Psr\Log\NullLogger;
/**
- * MWLoggerFactory service provider that creates \Psr\Log\NullLogger
+ * LoggerFactory service provider that creates \Psr\Log\NullLogger
* instances. A NullLogger silently discards all log events sent to it.
*
* Usage:
* @code
* $wgMWLoggerDefaultSpi = array(
- * 'class' => 'MWLoggerNullSpi',
+ * 'class' => '\\MediaWiki\\Logger\\NullSpi',
* );
* @endcode
*
- * @see MWLoggerFactory
+ * @see \MediaWiki\Logger\LoggerFactory
* @since 1.25
* @author Bryan Davis <bd808@wikimedia.org>
* @copyright © 2014 Bryan Davis and Wikimedia Foundation.
*/
-class MWLoggerNullSpi implements MWLoggerSpi {
+class NullSpi implements Spi {
/**
* @var \Psr\Log\NullLogger $singleton
public function __construct() {
- $this->singleton = new \Psr\Log\NullLogger();
+ $this->singleton = new NullLogger();
}