Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 191 lines (6 kb)
Included or required:0 times
Referenced: 4 times
Includes or requires: 0 files

Defines 2 classes

base_logger:: (14 methods):
  __construct()
  set_next()
  get_next()
  get_level()
  destroy()
  close()
  calculate_checksum()
  is_checksum_correct()
  process()
  is_circular_reference()
  get_nexts()
  get_datestr()
  get_levelstr()
  get_prefix()

base_logger_exception:: (1 method):
  __construct()


Class: base_logger  - X-Ref

Base abstract class for all the loggers to be used in backup/restore

Any message passed will be processed by all the loggers in the defined chain
(note some implementations may be not strictly "loggers" but classes performing
other sort of tasks (avoiding browser/php timeouts, painters...). One simple 1-way
basic chain of commands/responsibility pattern.

TODO: Finish phpdocs
__construct($level, $showdate = false, $showlevel = false)   X-Ref
No description

set_next($next)   X-Ref
No description

get_next()   X-Ref
No description

get_level()   X-Ref
No description

destroy()   X-Ref
Destroy (nullify) the chain of loggers references, also closing resources when needed.


close()   X-Ref
Close any resource the logger may have open.


calculate_checksum()   X-Ref
No description

is_checksum_correct($checksum)   X-Ref
No description

process($message, $level, $options = null)   X-Ref
No description

is_circular_reference($obj)   X-Ref
No description

get_nexts()   X-Ref
No description

get_datestr()   X-Ref
No description

get_levelstr($level)   X-Ref
No description

get_prefix($level, $options)   X-Ref
No description

Class: base_logger_exception  - X-Ref

__construct($errorcode, $a=NULL, $debuginfo=null)   X-Ref
No description