mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 00:26:10 +02:00
Adds FingersCrossedHandler::clear and BufferHandler::clear, fixes #390
This commit is contained in:
@@ -135,4 +135,15 @@ class FingersCrossedHandler extends AbstractHandler
|
||||
{
|
||||
$this->buffering = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the buffer without flushing any messages down to the wrapped handler.
|
||||
*
|
||||
* It also resets the handler to its initial buffering state.
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
$this->buffer = array();
|
||||
$this->reset();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user