public function UltimateCronJob::startLog in Ultimate Cron 7.2
Start logging.
Parameters
string $lock_id: The lock id to use.
string $init_message: Initial message for the log.
Return value
UltimateCronLogger The log object.
File
- ./
ultimate_cron.job.inc, line 557 - Job class for Ultimate Cron.
Class
- UltimateCronJob
- Class for handling cron jobs.
Code
public function startLog($lock_id, $init_message = '', $log_type = ULTIMATE_CRON_LOG_TYPE_NORMAL) {
$logger = $this
->getPlugin('logger');
$log_entry = $logger
->create($this->name, $lock_id, $init_message, $log_type);
$logger
->catchMessages($log_entry);
return $log_entry;
}