mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #1378] Level is not being read from config for custom handler #576
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#576
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 @mattdillon100 on GitHub (Sep 13, 2019).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1378
I am using Monolog version 1 with Symfony.
I'm not sure that this should be asked here or in the Symfony repo but will ask here first.
I have created a custom handler to push logs to AWS Firehose. Here is the constructor:
And here is my
monolog.yamlconfig:The problem that I am having is that the
$levelis always set toLogger::INFO(200), or whatever is set in the constructor. It seems to be ignoring what is set in the yaml config@alexandrmazur96 commented on GitHub (Sep 13, 2019):
Hi!
I think it happens because you do not pass the
levelparameter tofirehose_handler.As Symfony docs say:
But I can be wrong with this. Try to add
level: error:p.s. yes, this question should be to Symfony, not for Monolog. I guess.