Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Logger implementation that sends messages to database. More...
Public Member Functions | |
__construct ($level, $datecol=false, $levelcol=false, $messagecol=null, $logtable=null, $columns=null) | |
calculate_checksum () | |
This function will return one unique and stable checksum for one instance of the class implementing it. More... | |
close () | |
Close any resource the logger may have open. More... | |
destroy () | |
Destroy (nullify) the chain of loggers references, also closing resources when needed. More... | |
get_level () | |
get_next () | |
is_checksum_correct ($checksum) | |
Given one checksum, returns if matches object's checksum (true) or no (false) | |
process ($message, $level, $options=null) | |
set_next ($next) | |
Protected Attributes | |
$columns | |
$datecol | |
$level | |
$levelcol | |
$logtable | |
$messagecol | |
$next | |
$showdate | |
$showlevel | |
Logger implementation that sends messages to database.
TODO: Finish phpdocs
|
inherited |
This function will return one unique and stable checksum for one instance of the class implementing it.
It's each implementation responsibility to do it recursively if needed and use optional store (caching) of the checksum if necessary/possible
Implements checksumable.
|
inherited |
|
finalinherited |
Destroy (nullify) the chain of loggers references, also closing resources when needed.