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.

CloneableInstantiable
ExtendsMonolog\Handler\StreamHandler
Monolog\Handler\AbstractProcessingHandler
Monolog\Handler\AbstractHandler
Monolog\Handler\Handler
ImplementsMonolog\Handler\FormattableHandlerInterface
Monolog\Handler\HandlerInterface
Monolog\Handler\ProcessableHandlerInterface
Monolog\ResettableInterface
Constants
public Monolog\Handler\RotatingFileHandler::FILE_PER_DAY = 'Y-m-d'
public Monolog\Handler\RotatingFileHandler::FILE_PER_MONTH = 'Y-m'
public Monolog\Handler\RotatingFileHandler::FILE_PER_YEAR = 'Y'
Methods
public __construct(string $filename, int $maxFiles = 0, $level = 100, bool $bubble = true, ?int $filePermission = NULL, bool $useLocking = false)
 


    public Monolog\Handler\Handler::__destruct()
    public Monolog\Handler\Handler::__sleep()
    public close() : void
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getBubble() : bool
     
    Gets the bubbling behavior.

    • return bool true means that this handler allows bubbling. false means that bubbling is not permitted.
    public Monolog\Handler\AbstractProcessingHandler::getFormatter() : Monolog\Formatter\FormatterInterface
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getLevel() : int
     
    Gets minimum logging level at which this handler will be triggered.

    • return int
    public Monolog\Handler\StreamHandler::getStream()
     
    Return the currently active stream if it is open

    • return resource|null
    public Monolog\Handler\StreamHandler::getUrl() : string
     
    Return the stream URL if it was configured with a URL and not an active resource

    • return string|null
    public Monolog\Handler\AbstractProcessingHandler::handle(array $record) : bool
     
    {@inheritdoc}

    public Monolog\Handler\Handler::handleBatch(array $records) : void
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::isHandling(array $record) : bool
     
    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::popProcessor() : callable
     
    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::pushProcessor(callable $callback) : Monolog\Handler\HandlerInterface
     
    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public reset()
     
    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::setBubble(bool $bubble) : self
     
    Sets the bubbling behavior.

    • return self
    public setFilenameFormat(string $filenameFormat, string $dateFormat) : self
    public Monolog\Handler\AbstractProcessingHandler::setFormatter(Monolog\Formatter\FormatterInterface $formatter) : Monolog\Handler\HandlerInterface
     
    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public Monolog\Handler\AbstractHandler::setLevel( $level) : self
     
    Sets minimum logging level at which this handler will be triggered.

    • return self
    Properties
    protected Monolog\Handler\AbstractHandler::$bubble
    protected $dateFormat
    protected $filename
    protected $filenameFormat
    protected Monolog\Handler\StreamHandler::$filePermission
    protected Monolog\Handler\AbstractProcessingHandler::$formatter
     


    • var FormatterInterface
    protected Monolog\Handler\AbstractHandler::$level
    protected $maxFiles
    protected $mustRotate
    protected $nextRotation
    protected Monolog\Handler\AbstractProcessingHandler::$processors
     


    • var callable[]
    protected Monolog\Handler\StreamHandler::$stream
     


    • var resource|null
    protected Monolog\Handler\StreamHandler::$url
    protected Monolog\Handler\StreamHandler::$useLocking
    Methods
    protected Monolog\Handler\AbstractProcessingHandler::getDefaultFormatter() : Monolog\Formatter\FormatterInterface
     
    Gets the default formatter.

    Overwrite this if the LineFormatter is not a good default for your handler.

    protected getGlobPattern() : string
    protected getTimedFilename() : string
    protected Monolog\Handler\AbstractProcessingHandler::processRecord(array $record) : array
     
    Processes a record.

    protected Monolog\Handler\AbstractProcessingHandler::resetProcessors() : void
    protected rotate() : void
     
    Rotates the files.

    protected Monolog\Handler\StreamHandler::streamWrite( $stream, array $record) : void
     
    Write to stream

      protected write(array $record) : void
       
      {@inheritdoc}

      Methods
      private Monolog\Handler\StreamHandler::createDir() : void
      private Monolog\Handler\StreamHandler::customErrorHandler( $code, $msg) : bool
      private Monolog\Handler\StreamHandler::getDirFromStream(string $stream) : string
      © 2020 Bruce Wells
      Search Namespaces \ Classes
      ConfigurationNumbers (0-9.) only