Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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.
 
static has_log_report ()
 Whether this task logger has a report available.
 
static is_configured ()
 Whether the task is configured and ready to log.
 
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.
 

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: