[GH-ISSUE #207] [REQUEST]: Ability to have different Log files for different Log modes #71

Closed
opened 2026-03-04 02:11:55 +03:00 by kerem · 1 comment
Owner

Originally created by @abishekrsrikaanth on GitHub (Jul 3, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/207

It would be a good feature to be able to configure having different Log files for every Log Modes. Today all the logging goes into a single file, instead have files like

log-apache2handler-info-2013-07-03.txt
log-apache2handler-error-2013-07-03.txt
log-apache2handler-warn-2013-07-03.txt

This helps in debugging easily and also saves from the headache of searching through the whole log file than what one is actually searching for.

Originally created by @abishekrsrikaanth on GitHub (Jul 3, 2013). Original GitHub issue: https://github.com/Seldaek/monolog/issues/207 It would be a good feature to be able to configure having different Log files for every Log Modes. Today all the logging goes into a single file, instead have files like ``` log-apache2handler-info-2013-07-03.txt log-apache2handler-error-2013-07-03.txt log-apache2handler-warn-2013-07-03.txt ``` This helps in debugging easily and also saves from the headache of searching through the whole log file than what one is actually searching for.
kerem closed this issue 2026-03-04 02:11:56 +03:00
Author
Owner

@Seldaek commented on GitHub (Jul 3, 2013):

Use grep WARN log-apache2handler-2013-07-03.txt or similar filtering tool. Having the logs separated by levels doesn't make any sense IMO, if you want to look at all the logs of one request that had an error it's much easier if they're together in the same file, while filtering for a given level is very easy..

<!-- gh-comment-id:20445629 --> @Seldaek commented on GitHub (Jul 3, 2013): Use `grep WARN log-apache2handler-2013-07-03.txt` or similar filtering tool. Having the logs separated by levels doesn't make any sense IMO, if you want to look at all the logs of one request that had an error it's much easier if they're together in the same file, while filtering for a given level is very easy..
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#71
No description provided.