Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function log($level, $message, array $context = [])
 {
     if (!$this->options['logging_enabled']) {
         return false;
     }
     // Add the queue name and provider to the context
     $context = array_merge(['queue' => $this->name, 'provider' => $this->getProvider()], $context);
     $this->logger->addRecord($level, $message, $context);
 }