コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function setFormatter(FormatterInterface $formatter)
 {
     if ($formatter instanceof ElasticaFormatter) {
         return parent::setFormatter($formatter);
     }
     throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter');
 }
コード例 #2
0
 public function setFormatter(FormatterInterface $formatter)
 {
     parent::setFormatter($formatter);
     $this->slackRecord->setFormatter($formatter);
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function setFormatter(\Monolog\Formatter\FormatterInterface $formatter)
 {
     return parent::setFormatter($formatter);
 }