mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #1039] Unable to extend SlackWebhookHandler #424
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#424
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 @JayChandler on GitHub (Aug 11, 2017).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1039
I need to extend the slack record before it gets posted via curl. My idea was to subclass SlackWebhookHandler and overwrite the
writemethod but unfortunately the properties from the base class are privateThe only thing i have is
but then there is this!
To get this working i would have to copy the whole class into a new file and do my moifications. Thats not very nice.
It would be very nice if the class would have a callback that is called before the JSON serialization happens to have some kind of extensibility.
@Seldaek commented on GitHub (Jun 8, 2018):
Fixed by #1088