Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Public Member Functions | |
alert ($message, array $context=array()) | |
Action must be taken immediately. | |
critical ($message, array $context=array()) | |
Critical conditions. | |
debug ($message, array $context=array()) | |
Detailed debug information. | |
emergency ($message, array $context=array()) | |
System is unusable. | |
error ($message, array $context=array()) | |
Runtime errors that do not require immediate action but should typically be logged and monitored. | |
info ($message, array $context=array()) | |
Interesting events. | |
log ($level, $message, array $context=array()) | |
Logs with an arbitrary level. | |
notice ($message, array $context=array()) | |
Normal but significant events. | |
warning ($message, array $context=array()) | |
Exceptional occurrences that are not errors. | |
Public Attributes | |
const | ALERT = 'alert' |
const | CRITICAL = 'critical' |
const | DEBUG = 'debug' |
const | EMERGENCY = 'emergency' |
Psr\Log compatible log levels. | |
const | ERROR = 'error' |
const | INFO = 'info' |
const | NOTICE = 'notice' |
const | WARNING = 'warning' |
Mustache_Logger::alert | ( | $message, | |
array | $context = array() ) |
Action must be taken immediately.
Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::critical | ( | $message, | |
array | $context = array() ) |
Critical conditions.
Example: Application component unavailable, unexpected exception.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::debug | ( | $message, | |
array | $context = array() ) |
Detailed debug information.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::emergency | ( | $message, | |
array | $context = array() ) |
System is unusable.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::error | ( | $message, | |
array | $context = array() ) |
Runtime errors that do not require immediate action but should typically be logged and monitored.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::info | ( | $message, | |
array | $context = array() ) |
Interesting events.
Example: User logs in, SQL logs.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::log | ( | $level, | |
$message, | |||
array | $context = array() ) |
Logs with an arbitrary level.
mixed | $level | |
string | $message | |
array | $context |
Implemented in Mustache_Logger_StreamLogger.
Mustache_Logger::notice | ( | $message, | |
array | $context = array() ) |
Normal but significant events.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.
Mustache_Logger::warning | ( | $message, | |
array | $context = array() ) |
Exceptional occurrences that are not errors.
Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
string | $message | |
array | $context |
Implemented in Mustache_Logger_AbstractLogger.