folded-php / folded-php/log

Add daily rotation for file handler

Open
#11 0 comments 0 reactions 1 assignee Claimed by @khalyomede View on GitHub
enhancement
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Description

Logs can get huge as the time goes. Monolog provides this feature for file handler.

## Proposal

To be able to configure the file handler to enable file rotation strategy.

```php
use function Folded\addLogger;

addLogger("myLogger", "file", [
"path" => "path/to/folder",
"dailyRotation" => true,
]);
```

## Worarkound solutions

None.

## Notes

None.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.