Interface for task logging.
More...
|
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.
|
|
◆ 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 | $classname | The task class to fetch for |
- Return values
-
Implemented in core\task\database_logger.
◆ has_log_report()
static core\task\task_logger::has_log_report |
( |
| ) |
|
|
static |
◆ is_configured()
static core\task\task_logger::is_configured |
( |
| ) |
|
|
static |
◆ 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 | $task | The task that the log belongs to. |
string | $logpath | The path to the log on disk |
bool | $failed | Whether the task failed |
int | $dbreads | The number of DB reads |
int | $dbwrites | The number of DB writes |
float | $timestart | The start time of the task |
float | $timeend | The end time of the task |
Implemented in core\task\database_logger.
The documentation for this interface was generated from the following file:
- lib/classes/task/task_logger.php