MediaWiki
1.23.11
|
PSR-3 logger that wraps wfDebugLog() for backwards compatibility. More...
Public Member Functions | |
__construct ( $channel) | |
log ( $level, $message, array $context=array()) | |
Logs with an arbitrary level. More... | |
Public Member Functions inherited from Psr\Log\AbstractLogger | |
alert ($message, array $context=array()) | |
Action must be taken immediately. More... | |
critical ($message, array $context=array()) | |
Critical conditions. More... | |
debug ($message, array $context=array()) | |
Detailed debug information. More... | |
emergency ($message, array $context=array()) | |
System is unusable. More... | |
error ($message, array $context=array()) | |
Runtime errors that do not require immediate action but should typically be logged and monitored. More... | |
info ($message, array $context=array()) | |
Interesting events. More... | |
notice ($message, array $context=array()) | |
Normal but significant events. More... | |
warning ($message, array $context=array()) | |
Exceptional occurrences that are not errors. More... | |
Static Private Member Functions | |
static | interpolate ( $message, array $context=array()) |
Interpolate context values into the message placeholders. More... | |
Private Attributes | |
string | $channel |
$channel More... | |
PSR-3 logger that wraps wfDebugLog() for backwards compatibility.
All levels are passed to wfDebugLog() with the specific level being ignored.
Definition at line 35 of file BackcompatLogger.php.
MediaWiki\Logger\BackcompatLogger::__construct | ( | $channel | ) |
string | $channel |
Definition at line 44 of file BackcompatLogger.php.
References MediaWiki\Logger\BackcompatLogger\$channel.
|
staticprivate |
Interpolate context values into the message placeholders.
Copied from PSR-3 specification.
string $message array $context string
Definition at line 74 of file BackcompatLogger.php.
References MediaWiki\$context, array(), and as.
Logs with an arbitrary level.
Log events are converted into wfDebugLog() calls after interpolating the message with the provided context.
mixed | $level | |
string | $message | |
array | $context |
Implements Psr\Log\LoggerInterface.
Definition at line 58 of file BackcompatLogger.php.
References MediaWiki\$context, and wfDebugLog().
|
private |
$channel
Definition at line 39 of file BackcompatLogger.php.
Referenced by MediaWiki\Logger\BackcompatLogger\__construct().