Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Mustache_Logger_AbstractLogger Class Reference
Inheritance diagram for Mustache_Logger_AbstractLogger:
Mustache_Logger 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_AbstractLogger::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

Implements Mustache_Logger.

◆ critical()

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

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters
string$message
array$context

Implements Mustache_Logger.

◆ debug()

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

Detailed debug information.

Parameters
string$message
array$context

Implements Mustache_Logger.

◆ emergency()

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

System is unusable.

Parameters
string$message
array$context

Implements Mustache_Logger.

◆ error()

Mustache_Logger_AbstractLogger::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

Implements Mustache_Logger.

◆ info()

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

Interesting events.

Example: User logs in, SQL logs.

Parameters
string$message
array$context

Implements Mustache_Logger.

◆ log()

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

Logs with an arbitrary level.

Parameters
mixed$level
string$message
array$context

Implemented in Mustache_Logger_StreamLogger.

◆ notice()

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

Normal but significant events.

Parameters
string$message
array$context

Implements Mustache_Logger.

◆ warning()

Mustache_Logger_AbstractLogger::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

Implements Mustache_Logger.


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