MediaWiki REL1_40
|
A logger which writes to the terminal. More...
Inherits AbstractLogger.
Public Member Functions | |
__construct (string $channel, string $minLevel=null, LoggerInterface $forwardTo=null) | |
log ( $level, $message, array $context=[]) | |
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 15 of file ConsoleLogger.php.
MediaWiki\Logger\ConsoleLogger::__construct | ( | string | $channel, |
string | $minLevel = null, | ||
LoggerInterface | $forwardTo = null ) |
string | $channel | log channel name. |
string | null | $minLevel | Minimum PSR-3 level below which messages are ignored. |
LoggerInterface | null | $forwardTo | Other logger to forward to. |
Definition at line 36 of file ConsoleLogger.php.
MediaWiki\Logger\ConsoleLogger::log | ( | $level, | |
$message, | |||
array | $context = [] ) |
Definition at line 52 of file ConsoleLogger.php.
References MediaWiki\Logger\LegacyLogger\format().