Chris@0: loggerFactory) { Chris@0: $this->loggerFactory = \Drupal::service('logger.factory'); Chris@0: } Chris@0: return $this->loggerFactory->get($channel); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Injects the logger channel factory. Chris@0: * Chris@0: * @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory Chris@0: * The logger channel factory service. Chris@0: * Chris@0: * @return $this Chris@0: */ Chris@0: public function setLoggerFactory(LoggerChannelFactoryInterface $logger_factory) { Chris@0: $this->loggerFactory = $logger_factory; Chris@0: Chris@0: return $this; Chris@0: } Chris@0: Chris@0: }