deploymentConfig = $deploymentConfig; } /** * @inheritdoc */ public function isHandling(array $record): bool { return parent::isHandling($record) && $this->deploymentConfig->isDbAvailable() && $this->isLoggingEnabled(); } /** * Check that logging functionality is enabled. * * @return bool */ private function isLoggingEnabled(): bool { $configValue = $this->deploymentConfig->get(ConfigOptionsList::CONFIG_PATH_SYSLOG_LOGGING); return (bool)$configValue; } }