[GH-ISSUE #589] Logstashformatter level_name used for level #207

Closed
opened 2026-03-04 02:13:08 +03:00 by kerem · 2 comments
Owner

Originally created by @simitter on GitHub (Jun 24, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/589

In v1 the field level contains level_name instead of the numeric representation
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/LogstashFormatter.php#L147

Is this a desired behavior or an oversight/bug?

Originally created by @simitter on GitHub (Jun 24, 2015). Original GitHub issue: https://github.com/Seldaek/monolog/issues/589 In v1 the field level contains level_name instead of the numeric representation https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/LogstashFormatter.php#L147 Is this a desired behavior or an oversight/bug?
kerem closed this issue 2026-03-04 02:13:08 +03:00
Author
Owner

@Seldaek commented on GitHub (Jun 24, 2015):

The point is that those names are more readable and constant over time, while the numeric values might well change and don't convey so much information to someone that is not familiar with monolog.

<!-- gh-comment-id:114803297 --> @Seldaek commented on GitHub (Jun 24, 2015): The point is that those names are more readable and constant over time, while the numeric values might well change and don't convey so much information to someone that is not familiar with monolog.
Author
Owner

@simitter commented on GitHub (Jun 24, 2015):

Thanks for the explanation.
i'll migrate my kibana filters to use the name.

<!-- gh-comment-id:114804954 --> @simitter commented on GitHub (Jun 24, 2015): Thanks for the explanation. i'll migrate my kibana filters to use the name.
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#207
No description provided.