You are here

public function CacheLogger::getLogEntries in Ultimate Cron 8.2

Get page with log entries for a job.

Parameters

string $name: Name of job.

array $log_types: Log types to get.

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

Return value

array Log entries.

Overrides LoggerInterface::getLogEntries

File

src/Plugin/ultimate_cron/Logger/CacheLogger.php, line 79

Class

CacheLogger
Cache Logger.

Namespace

Drupal\ultimate_cron\Plugin\ultimate_cron\Logger

Code

public function getLogEntries($name, array $log_types, $limit = 10) {
  $log_entry = $this
    ->load($name);
  return $log_entry->lid ? array(
    $log_entry,
  ) : array();
}