mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1365] Get severity level via Processor #569
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#569
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 @LeftPinkie on GitHub (Aug 23, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1365
Is there a way to get the severity level via a processor? I would like to create a custom processor where:
@Seldaek commented on GitHub (Aug 23, 2019):
The severity name is available as level_name on the record already. You can take it from there and put it in extra, or use %level_name% in LineFormatter to get it in the logs