Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RotatingFileHandler to maintain the correct maximum number files when using folder by date #1671

Merged
merged 4 commits into from
Jun 9, 2022

Conversation

kermage
Copy link
Contributor

@kermage kermage commented May 13, 2022

Setting filename format with slashes

$handler = new RotatingFileHandler('path/to/save/sample.log', 2);

$handler->setFilenameFormat('{date}/{filename}', 'Y/m/d');

path/to/save/[year]/[month]/[day]/sample.log

@Seldaek Seldaek added this to the 2.x milestone Jun 8, 2022
@Seldaek Seldaek added the Bug label Jun 8, 2022
@Seldaek Seldaek merged commit 8ac56aa into Seldaek:2.x Jun 9, 2022
@lyrixx lyrixx mentioned this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants