Monolog\Handler\RotatingFileHandler
Stores logs to files that are rotated every day and a limited number of files are kept.
This rotation is only intended to be used as a workaround. Using logrotate to
handle the rotation is strongly encouraged when you can use it.
- Author: Christophe Coevoet <stof@notk.org>
Synopsis
class RotatingFileHandler
extends StreamHandler
{
- // members
- protected $filename;
- protected $maxFiles;
- protected $mustRotate;
- protected $nextRotation;
- // Inherited members from AbstractHandler
- protected $level;
- protected $bubble;
- protected FormatterInterface $formatter;
- protected array $processors;
- // methods
- public void __construct()
- public void close()
- protected void write()
- protected void rotate()
- protected void getTimedFilename()
- // Inherited methods from StreamHandler
- public void __construct()
- public void close()
- protected void write()
- // Inherited methods from AbstractProcessingHandler
- public void handle()
- protected abstract void write()
- protected array processRecord()
- // 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
- $bubble
- $filename
- $formatter — Monolog\Formatter\FormatterInterface
- $level
- $maxFiles
- $mustRotate
- $nextRotation
- $processors
- $stream
- $url
Methods
protected
- getTimedFilename()
- rotate() — Rotates the files.
- write() — {@inheritdoc}
public
- __construct()
- close() — {@inheritdoc}
Inherited from Monolog\Handler\StreamHandler
protected
- write() — {@inheritdoc}
public
- close() — {@inheritdoc}
Inherited from Monolog\Handler\AbstractProcessingHandler
protected
- processRecord() — Processes a record.
- write() — Writes the record down to the log of the implementing handler
public
- handle() — {@inheritdoc}
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.