public function setChannel($channel, LoggerInterface $logger) { if (isset($this->channels[$channel])) { throw new InvalidArgumentException("Channel {$channel} is already defined"); } $this->channels[$channel] = $logger; }
/** * {@inheritdoc} */ public function configure() { $this->channelManager->setChannel('default', $this->makeDefaultLogger()); }