Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Mustache_Logger Interface Reference
Inheritance diagram for Mustache_Logger:
Mustache_Logger_AbstractLogger Mustache_Logger_StreamLogger

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'
 

Member Function Documentation

◆ alert()

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.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ critical()

Mustache_Logger::critical ( $message,
array $context = array() )

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ debug()

Mustache_Logger::debug ( $message,
array $context = array() )

Detailed debug information.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ emergency()

Mustache_Logger::emergency ( $message,
array $context = array() )

System is unusable.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ error()

Mustache_Logger::error ( $message,
array $context = array() )

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ info()

Mustache_Logger::info ( $message,
array $context = array() )

Interesting events.

Example: User logs in, SQL logs.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ log()

Mustache_Logger::log ( $level,
$message,
array $context = array() )

Logs with an arbitrary level.

Parameters
mixed$level
string$message
array$context

Implemented in Mustache_Logger_StreamLogger.

◆ notice()

Mustache_Logger::notice ( $message,
array $context = array() )

Normal but significant events.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.

◆ warning()

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.

Parameters
string$message
array$context

Implemented in Mustache_Logger_AbstractLogger.


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