MediaWiki  1.23.14
MediaWiki\Logger\LoggerFactory Class Reference

Backwards compatible PSR-3 logger instance factory. More...

Static Public Member Functions

static getInstance ( $channel)
 Get a named logger instance. More...
 

Private Member Functions

 __construct ()
 Construction of utility class is not allowed. More...
 

Detailed Description

Backwards compatible PSR-3 logger instance factory.

PSR-3 debug logging was introduced to MediaWiki in 1.25. This class provides a backward compatible PSR-3 logging layer to make backporting critical updates from 1.25+ easier. It also serves to allow extensions that maintain backwards compatibility with the 1.23 LTS releases to migrate to the new logging system.

Since
1.23.10
Author
Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
Note
© 2015 Bryan Davis and Wikimedia Foundation.

Definition at line 36 of file LoggerFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Logger\LoggerFactory::__construct ( )
private

Construction of utility class is not allowed.

Definition at line 51 of file LoggerFactory.php.

Member Function Documentation

◆ getInstance()

static MediaWiki\Logger\LoggerFactory::getInstance (   $channel)
static

Get a named logger instance.

Parameters
string$channelLogger channel (name)
Returns
\Psr\Log\LoggerInterface

Definition at line 44 of file LoggerFactory.php.


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