function RulesDebugLoggerChannel::__construct

Creates RulesDebugLoggerChannel object.

Parameters

\Psr\Log\LoggerInterface $rules_debug_log: The Rules debug log.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory instance.

Overrides LoggerChannel::__construct

File

src/Logger/RulesDebugLoggerChannel.php, line 37

Class

RulesDebugLoggerChannel
Logs rules log entries in the available loggers.

Namespace

Drupal\rules\Logger

Code

public function __construct(LoggerInterface $rules_debug_log, ConfigFactoryInterface $config_factory) {
    parent::__construct('rules_debug');
    $this->rulesDebugLog = $rules_debug_log;
    $this->config = $config_factory;
}