mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Prepare changelog
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
### 2.0.1 (2019-11-13)
|
### 2.0.1 (2019-11-13)
|
||||||
|
|
||||||
* Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable
|
* Fixed normalization of Traversables to avoid traversing them as not all of them are rewindable
|
||||||
* Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler and SamplingHandler
|
* Fixed setFormatter/getFormatter to forward to the nested handler in FilterHandler, FingersCrossedHandler, BufferHandler, OverflowHandler and SamplingHandler
|
||||||
* Fixed BrowserConsoleHandler formatting when using multiple styles
|
* Fixed BrowserConsoleHandler formatting when using multiple styles
|
||||||
* Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings
|
* Fixed normalization of exception codes to be always integers even for PDOException which have them as numeric strings
|
||||||
* Fixed normalization of SoapFault objects containing non-strings as "detail"
|
* Fixed normalization of SoapFault objects containing non-strings as "detail"
|
||||||
|
@@ -23,7 +23,7 @@ use Monolog\Formatter\FormatterInterface;
|
|||||||
*
|
*
|
||||||
* @author Christophe Coevoet <stof@notk.org>
|
* @author Christophe Coevoet <stof@notk.org>
|
||||||
*/
|
*/
|
||||||
class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface
|
class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface, FormattableHandlerInterface
|
||||||
{
|
{
|
||||||
use ProcessableHandlerTrait;
|
use ProcessableHandlerTrait;
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@ class BufferHandler extends AbstractHandler implements ProcessableHandlerInterfa
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function setFormatter(FormatterInterface $formatter)
|
public function setFormatter(FormatterInterface $formatter): HandlerInterface
|
||||||
{
|
{
|
||||||
$this->handler->setFormatter($formatter);
|
$this->handler->setFormatter($formatter);
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ class BufferHandler extends AbstractHandler implements ProcessableHandlerInterfa
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getFormatter()
|
public function getFormatter(): FormatterInterface
|
||||||
{
|
{
|
||||||
return $this->handler->getFormatter();
|
return $this->handler->getFormatter();
|
||||||
}
|
}
|
||||||
|
@@ -12,6 +12,7 @@
|
|||||||
namespace Monolog\Handler;
|
namespace Monolog\Handler;
|
||||||
|
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
use Monolog\Formatter\FormatterInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handler to only pass log messages when a certain threshold of number of messages is reached.
|
* Handler to only pass log messages when a certain threshold of number of messages is reached.
|
||||||
@@ -33,7 +34,7 @@ use Monolog\Logger;
|
|||||||
*
|
*
|
||||||
* @author Kris Buist <krisbuist@gmail.com>
|
* @author Kris Buist <krisbuist@gmail.com>
|
||||||
*/
|
*/
|
||||||
class OverflowHandler extends AbstractHandler
|
class OverflowHandler extends AbstractHandler implements FormattableHandlerInterface
|
||||||
{
|
{
|
||||||
/** @var HandlerInterface */
|
/** @var HandlerInterface */
|
||||||
private $handler;
|
private $handler;
|
||||||
@@ -124,4 +125,22 @@ class OverflowHandler extends AbstractHandler
|
|||||||
|
|
||||||
return false === $this->bubble;
|
return false === $this->bubble;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function setFormatter(FormatterInterface $formatter): HandlerInterface
|
||||||
|
{
|
||||||
|
$this->handler->setFormatter($formatter);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function getFormatter(): FormatterInterface
|
||||||
|
{
|
||||||
|
return $this->handler->getFormatter();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user