Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core\task\task_logger Interface Reference

Interface for task logging. More...

Inheritance diagram for core\task\task_logger:
core\task\database_logger

Static Public Member Functions

static get_url_for_task_class (string $classname)
 Get any URL available for viewing relevant task log reports. More...
 
static has_log_report ()
 Whether this task logger has a report available. More...
 
static is_configured ()
 Whether the task is configured and ready to log. More...
 
static store_log_for_task (task_base $task, string $logpath, bool $failed, int $dbreads, int $dbwrites, float $timestart, float $timeend)
 Store the log for the specified task. More...
 

Detailed Description

Interface for task logging.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_url_for_task_class()

static core\task\task_logger::get_url_for_task_class ( string  $classname)
static

Get any URL available for viewing relevant task log reports.

Parameters
string$classnameThe task class to fetch for
Return values
moodle_url

Implemented in core\task\database_logger.

◆ has_log_report()

static core\task\task_logger::has_log_report ( )
static

Whether this task logger has a report available.

Return values
bool

Implemented in core\task\database_logger.

◆ is_configured()

static core\task\task_logger::is_configured ( )
static

Whether the task is configured and ready to log.

Return values
bool

Implemented in core\task\database_logger.

◆ store_log_for_task()

static core\task\task_logger::store_log_for_task ( task_base  $task,
string  $logpath,
bool  $failed,
int  $dbreads,
int  $dbwrites,
float  $timestart,
float  $timeend 
)
static

Store the log for the specified task.

Parameters
task_base$taskThe task that the log belongs to.
string$logpathThe path to the log on disk
bool$failedWhether the task failed
int$dbreadsThe number of DB reads
int$dbwritesThe number of DB writes
float$timestartThe start time of the task
float$timeendThe end time of the task

Implemented in core\task\database_logger.


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