Monolog\Handler\FingersCrossedHandler
Buffers all records until a certain level is reached
The advantage of this approach is that you don't get any clutter in your log files.
Only requests which actually trigger an error (or whatever your actionLevel is) will be
in the logs, but they will contain all records, not only those above the level threshold.
- Author: Jordi Boggiano <j.boggiano@seld.be>
Synopsis
class FingersCrossedHandler
extends AbstractHandler
{
- // members
- protected $handler;
- protected $activationStrategy;
- protected $buffering;
- protected $bufferSize;
- protected array $buffer;
- protected $stopBuffering;
- // Inherited members from AbstractHandler
- protected $level;
- protected $bubble;
- protected FormatterInterface $formatter;
- protected array $processors;
- // methods
- public void __construct()
- public void isHandling()
- public void handle()
- public void reset()
- // Inherited methods from AbstractHandler
- public void __construct()
- public void isHandling()
- public void handleBatch()
- public void close()
- public void pushProcessor()
- public void popProcessor()
- public void setFormatter()
- public void getFormatter()
- public void setLevel()
- public integer getLevel()
- public void setBubble()
- public Boolean getBubble()
- public void __destruct()
- protected FormatterInterface getDefaultFormatter()
Hierarchy
Extends
Members
protected
- $activationStrategy
- $bubble
- $buffer
- $bufferSize
- $buffering
- $formatter — Monolog\Formatter\FormatterInterface
- $handler
- $level
- $processors
- $stopBuffering
Methods
public
- __construct()
- handle() — {@inheritdoc}
- isHandling() — {@inheritdoc}
- reset() — Resets the state of the handler. Stops forwarding records to the wrapped handler.
Inherited from Monolog\Handler\AbstractHandler
protected
- getDefaultFormatter() — Gets the default formatter.
public
- close() — Closes the handler.
- getBubble() — Gets the bubbling behavior.
- getFormatter() — {@inheritdoc}
- getLevel() — Gets minimum logging level at which this handler will be triggered.
- handleBatch() — {@inheritdoc}
- isHandling() — {@inheritdoc}
- popProcessor() — {@inheritdoc}
- pushProcessor() — {@inheritdoc}
- setBubble() — Sets the bubbling behavior.
- setFormatter() — {@inheritdoc}
- setLevel() — Sets minimum logging level at which this handler will be triggered.