You are here

public function UltimateCronJob::getLogEntries in Ultimate Cron 7.2

Get log entries.

Parameters

int $limit: (optional) Number of log entries per page.

Return value

array Array of UltimateCronLogEntry objects.

File

./ultimate_cron.job.inc, line 496
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function getLogEntries($log_types = ULTIMATE_CRON_LOG_TYPE_ALL, $limit = 10) {
  $log_types = $log_types == ULTIMATE_CRON_LOG_TYPE_ALL ? _ultimate_cron_define_log_type_all() : $log_types;
  return $this
    ->getPlugin('logger')
    ->getLogEntries($this->name, $log_types, $limit);
}