From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/debug/logger/NullSpi.php | 64 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 includes/debug/logger/NullSpi.php (limited to 'includes/debug/logger/NullSpi.php') diff --git a/includes/debug/logger/NullSpi.php b/includes/debug/logger/NullSpi.php new file mode 100644 index 00000000..a82d2c4c --- /dev/null +++ b/includes/debug/logger/NullSpi.php @@ -0,0 +1,64 @@ + '\\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; + } + +} -- cgit v1.2.3-54-g00ecf