'MWLoggerLegacySpi', * ); * @endcode * * @see MWLogger * @since 1.25 * @author Bryan Davis * @copyright © 2014 Bryan Davis and Wikimedia Foundation. */ class MWLoggerLegacySpi implements MWLoggerSpi { /** * @var array $singletons */ protected $singletons = array(); /** * Get a logger instance. * * @param string $channel Logging channel * @return MWLogger Logger instance */ public function getLogger( $channel ) { if ( !isset( $this->singletons[$channel] ) ) { $this->singletons[$channel] = new MWLoggerLegacyLogger($channel); } return $this->singletons[$channel]; } }