0 follower

Interface Yiisoft\Log\Target\File\FileRotatorInterface

Implemented byYiisoft\Log\Target\File\FileRotator

Interface for FileRotator

Public Methods

Hide inherited methods

Method Description Defined By
rotateFile() Rotates files. Yiisoft\Log\Target\File\FileRotatorInterface
shouldRotateFile() Checks whether the file should be rotated. Yiisoft\Log\Target\File\FileRotatorInterface

Method Details

Hide inherited methods

rotateFile() public abstract method

Rotates files.

public abstract void rotateFile ( string $file )
$file string

The log file for rotation.

                public function rotateFile(string $file): void;

            
shouldRotateFile() public abstract method

Checks whether the file should be rotated.

public abstract boolean shouldRotateFile ( string $file )
$file string

The log file for rotation.

return boolean

Whether you should rotate the file.

                public function shouldRotateFile(string $file): bool;