[GH-ISSUE #218] "formatter" option for type "service" doesn't work #75

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

Originally created by @acasademont on GitHub (Aug 7, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/218

Looking at the code I see that there is a return immediately after the service alias is created. Should not be also possible to override whichever formatter the service has to a custom one?

My use case is with the SncRedisBundle, where no formatter is set for the service and monolog doesn't call the setFormatter method either.

Thanks!

Originally created by @acasademont on GitHub (Aug 7, 2013). Original GitHub issue: https://github.com/Seldaek/monolog/issues/218 Looking at the code I see that there is a `return` immediately after the service alias is created. Should not be also possible to override whichever formatter the service has to a custom one? My use case is with the SncRedisBundle, where no formatter is set for the service and monolog doesn't call the setFormatter method either. Thanks!
kerem closed this issue 2026-03-04 02:11:57 +03:00
Author
Owner

@acasademont commented on GitHub (Aug 7, 2013):

My bad, this should go to the monolog bundle, sorry!

<!-- gh-comment-id:22276518 --> @acasademont commented on GitHub (Aug 7, 2013): My bad, this should go to the monolog bundle, sorry!
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#75
No description provided.