mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 08:35:53 +03:00
[GH-ISSUE #1686] Adding support for RFC 5424 levels in Logger::toMonologLevel #720
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#720
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Seldaek on GitHub (Jun 11, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1686
We could support this which would alleviate the need for hacks like https://git.drupalcode.org/project/monolog/-/blob/2.x/src/Logger/Logger.php#L29-50
The numbers do not conflict with the monolog level constants, so this should be fine.
In 3.x we could also have a method on Monolog\Level to turn a case back into a RFC 5424 level.
/cc @lussoluca any opinion from Drupal Monolog side? I think it'd be great to remove the need for overriding methods as it would prevent problems like #1684
@lussoluca commented on GitHub (Jun 24, 2022):
I agree with you, I can start working on this in the next days