You are here

public function UltimateCronDatabaseLogger::__construct in Ultimate Cron 7.2

Constructor.

Overrides UltimateCronPlugin::__construct

File

plugins/ultimate_cron/logger/database.class.php, line 21
Database logger for Ultimate Cron.

Class

UltimateCronDatabaseLogger
Class for using database as log storage.

Code

public function __construct($name, $plugin, $log_type = ULTIMATE_CRON_LOG_TYPE_NORMAL) {
  parent::__construct($name, $plugin, $log_type);
  $this->options['method'] = array(
    ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_DISABLED => t('Disabled'),
    ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_EXPIRE => t('Remove logs older than a specified age'),
    ULTIMATE_CRON_DATABASE_LOGGER_CLEANUP_METHOD_RETAIN => t('Retain only a specific amount of log entries'),
  );
}