[PR #821] [MERGED] Allow alternative date separators for RotatingFileHandler #1365

Closed
opened 2026-03-04 03:10:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/821
Author: @rpkamp
Created: 7/14/2016
Status: Merged
Merged: 8/1/2016
Merged by: @Seldaek

Base: masterHead: master


📝 Commits (1)

  • 49d64e1 Allow alternative date separators for RotatingFileHandler

📊 Changes

2 files changed (+16 additions, -3 deletions)

View changed files

📝 src/Monolog/Handler/RotatingFileHandler.php (+4 -3)
📝 tests/Monolog/Handler/RotatingFileHandlerTest.php (+12 -0)

📄 Description

Currently only dashes are allowed in date formats (i.e., "Y-m-d").
This commit also allows slashes, underscores and dots to be used instead
of only dashes for more flexibility.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/821 **Author:** [@rpkamp](https://github.com/rpkamp) **Created:** 7/14/2016 **Status:** ✅ Merged **Merged:** 8/1/2016 **Merged by:** [@Seldaek](https://github.com/Seldaek) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`49d64e1`](https://github.com/Seldaek/monolog/commit/49d64e1dd59c23c31048d926c000da986e6adae5) Allow alternative date separators for RotatingFileHandler ### 📊 Changes **2 files changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/Handler/RotatingFileHandler.php` (+4 -3) 📝 `tests/Monolog/Handler/RotatingFileHandlerTest.php` (+12 -0) </details> ### 📄 Description Currently only dashes are allowed in date formats (i.e., "Y-m-d"). This commit also allows slashes, underscores and dots to be used instead of only dashes for more flexibility. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:10:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#1365
No description provided.