MediaWiki REL1_40
MediaWiki\Logger\ConsoleSpi Class Reference

Simple logger SPI for logging to STDERR. More...

Inherits MediaWiki\Logger\Spi.

Collaboration diagram for MediaWiki\Logger\ConsoleSpi:

Public Member Functions

 __construct (array $config=[])
 
 getLogger ( $channel)
 Get a logger instance.
Parameters
string$channelLogging channel
Returns
\Psr\Log\LoggerInterface Logger instance

 

Detailed Description

Simple logger SPI for logging to STDERR.

Definition at line 10 of file ConsoleSpi.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Logger\ConsoleSpi::__construct ( array $config = [])
Parameters
array$config
  • channels: (string[]) List of channels to log: channel name => minimum level. Omit to log everything.
  • forwardTo: (Spi) Forward all log messages to this SPI (regardless of whether ConsoleSPI logs them).

Definition at line 24 of file ConsoleSpi.php.

Member Function Documentation

◆ getLogger()

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

Get a logger instance.

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

Implements MediaWiki\Logger\Spi.

Definition at line 30 of file ConsoleSpi.php.


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