Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(no description)

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

Defines 1 class

Mustache_Logger:: (9 methods):
  emergency()
  alert()
  critical()
  error()
  warning()
  notice()
  info()
  debug()
  log()


Interface: Mustache_Logger  - X-Ref

Describes a Mustache logger instance.

This is identical to the Psr\Log\LoggerInterface.

The message MUST be a string or object implementing __toString().

The message MAY contain placeholders in the form: {foo} where foo
will be replaced by the context data in key "foo".

The context array can contain arbitrary data, the only assumption that
can be made by implementors is that if an Exception instance is given
to produce a stack trace, it MUST be in a key named "exception".

See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
for the full interface specification.
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

log($level, $message, array $context = array()   X-Ref
Logs with an arbitrary level.

param: mixed  $level
param: string $message
param: array  $context