1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Add formatter forwarding to BufferHandler as well

This commit is contained in:
Jordi Boggiano
2019-11-13 10:51:07 +01:00
parent ec3e0e3f90
commit 4a70fb3353

View File

@@ -126,4 +126,22 @@ class BufferHandler extends AbstractHandler
$this->handler->reset(); $this->handler->reset();
} }
} }
/**
* {@inheritdoc}
*/
public function setFormatter(FormatterInterface $formatter)
{
$this->handler->setFormatter($formatter);
return $this;
}
/**
* {@inheritdoc}
*/
public function getFormatter()
{
return $this->handler->getFormatter();
}
} }