Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 121 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Mustache_Logger_AbstractLogger:: (8 methods):
  emergency()
  alert()
  critical()
  error()
  warning()
  notice()
  info()
  debug()


Class: Mustache_Logger_AbstractLogger  - X-Ref

This is a simple Logger implementation that other Loggers can inherit from.

This is identical to the Psr\Log\AbstractLogger.

It simply delegates all log-level-specific methods to the `log` method to
reduce boilerplate code that a simple Logger that does the same thing with
messages regardless of the error level has to implement.
emergency($message, array $context = array()   X-Ref
System is unusable.

param: string $message
param: array  $context

alert($message, array $context = array()   X-Ref
Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.

param: string $message
param: array  $context

critical($message, array $context = array()   X-Ref
Critical conditions.

Example: Application component unavailable, unexpected exception.

param: string $message
param: array  $context

error($message, array $context = array()   X-Ref
Runtime errors that do not require immediate action but should typically
be logged and monitored.

param: string $message
param: array  $context

warning($message, array $context = array()   X-Ref
Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.

param: string $message
param: array  $context

notice($message, array $context = array()   X-Ref
Normal but significant events.

param: string $message
param: array  $context

info($message, array $context = array()   X-Ref
Interesting events.

Example: User logs in, SQL logs.

param: string $message
param: array  $context

debug($message, array $context = array()   X-Ref
Detailed debug information.

param: string $message
param: array  $context