MediaWiki REL1_35
MediaWiki\Logger\ConsoleLogger Class Reference

A logger which writes to the terminal. More...

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

Public Member Functions

 __construct ( $channel)
 
 log ( $level, $message, array $context=[])
 

Private Attributes

string $channel
 

Detailed Description

A logger which writes to the terminal.

The output is supposed to be human-readable, and should be changed as necessary to better achieve that goal.

Definition at line 12 of file ConsoleLogger.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Logger\ConsoleLogger::__construct (   $channel)
Parameters
string$channel

Definition at line 19 of file ConsoleLogger.php.

References MediaWiki\Logger\ConsoleLogger\$channel.

Member Function Documentation

◆ log()

MediaWiki\Logger\ConsoleLogger::log (   $level,
  $message,
array  $context = [] 
)

Definition at line 26 of file ConsoleLogger.php.

References MediaWiki\Logger\LegacyLogger\format().

Member Data Documentation

◆ $channel

string MediaWiki\Logger\ConsoleLogger::$channel
private

Definition at line 14 of file ConsoleLogger.php.

Referenced by MediaWiki\Logger\ConsoleLogger\__construct().


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