Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
log ($level, $message, array $context=array()) | |
Fonctions membres publiques hérités de AbstractLogger | |
emergency ($message, array $context=array()) | |
alert ($message, array $context=array()) | |
critical ($message, array $context=array()) | |
error ($message, array $context=array()) | |
warning ($message, array $context=array()) | |
notice ($message, array $context=array()) | |
info ($message, array $context=array()) | |
debug ($message, array $context=array()) | |
This Logger can be used to avoid conditional log calls.
Logging should always be optional, and if no logger is provided to your library creating a NullLogger instance to have something to throw logs at is a good way to avoid littering your code with if ($this->logger) { }
blocks.
log | ( | $level, | |
$message, | |||
array | $context = array() |
||
) |
Logs with an arbitrary level.
mixed | $level | |
string | $message | |
array | $context |
Implémente LoggerInterface.