Database logger for task logging.
More...
|
static | cleanup () |
| Cleanup old task logs.
|
|
static | delete_task_logs (array $logids) |
| Delete task logs for the specified logs.
|
|
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.
|
|
|
int const | TYPE_ADHOC = 1 |
| Type constant for an adhoc task.
|
|
int const | TYPE_SCHEDULED = 0 |
| Type constant for a scheduled task.
|
|
Database logger for task logging.
- Copyright
- 2018 Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ delete_task_logs()
static core\task\database_logger::delete_task_logs |
( |
array | $logids | ) |
|
|
static |
Delete task logs for the specified logs.
- Parameters
-
◆ get_url_for_task_class()
static core\task\database_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
-
Implements core\task\task_logger.
◆ has_log_report()
static core\task\database_logger::has_log_report |
( |
| ) |
|
|
static |
◆ is_configured()
static core\task\database_logger::is_configured |
( |
| ) |
|
|
static |
◆ store_log_for_task()
static core\task\database_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 |
Implements core\task\task_logger.
The documentation for this class was generated from the following file:
- lib/classes/task/database_logger.php