MAX_CHUNK_SIZE
MAX_CHUNK_SIZE = 2147483647
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.
$streamChunkSize : int
$stream : resource|null
$url : ?string
$filePermission : ?int
$useLocking : bool
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$filename : string
$maxFiles : int
$mustRotate : bool
$filenameFormat : string
$dateFormat : string
$errorMessage : ?string
$dirCreated : true|null
__construct(string $filename, int $maxFiles, mixed $level = Logger::DEBUG, bool $bubble = true, int|null $filePermission = null, bool $useLocking = false) : mixed
string | $filename | |
int | $maxFiles | The maximal amount of files to keep (0 means unlimited) |
mixed | $level | |
bool | $bubble | |
int|null | $filePermission | Optional file permissions (default (0644) are only for owner read/write) |
bool | $useLocking | Try to lock log file before doing any writes |