MediaWiki  1.28.0
MediaWiki\Logger\LegacySpi Class Reference

LoggerFactory service provider that creates LegacyLogger instances. More...

Inheritance diagram for MediaWiki\Logger\LegacySpi:
Collaboration diagram for MediaWiki\Logger\LegacySpi:

Public Member Functions

 getLogger ($channel)
 Get a logger instance. More...
 

Protected Attributes

 $singletons = []
 

Detailed Description

LoggerFactory service provider that creates LegacyLogger instances.

Usage:

$wgMWLoggerDefaultSpi = [
'class' => '\\\\MediaWiki\\\\Logger\\\\LegacySpi',
];
See also
\MediaWiki\Logger\LoggerFactory
Since
1.25
Author
Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
Note
© 2014 Bryan Davis and Wikimedia Foundation.

Definition at line 38 of file LegacySpi.php.

Member Function Documentation

MediaWiki\Logger\LegacySpi::getLogger (   $channel)

Get a logger instance.

Parameters
string$channelLogging channel
Returns
\Psr\Log\LoggerInterface Logger instance

Implements MediaWiki\Logger\Spi.

Definition at line 51 of file LegacySpi.php.

References LegacyLogger.

Member Data Documentation

array MediaWiki\Logger\LegacySpi::$singletons = []
protected

Definition at line 43 of file LegacySpi.php.


The documentation for this class was generated from the following file: