public function setStream($streamName)
 {
     try {
         parent::setStream($streamName);
     } catch (\Mougrim\Logger\LoggerConfigurationException $exception) {
         throw new LoggerConfigurationException($exception->getMessage(), $exception->getCode(), $exception);
     }
 }
Exemplo n.º 2
0
 public function testInvalidStream()
 {
     $this->setExpectedException(LoggerConfigurationException::class);
     $appender = new AppenderStd();
     $appender->setStream('ERROR');
 }