mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #877] fsockopen in SocketHandler/SlackHandler with proxy #346
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#346
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 @mg-totemic on GitHub (Nov 2, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/877
Hi,
Recently I wanted to implement the 'SlackHandler' to log critical error messages to Slack, however I've come across an issue as I'm behind a proxy.
There doesn't seem to be any way to configure this handler to use a proxy as it uses fsockopen and there's no way to pass it any options or anything.
Any advice/thoughts would be appreciated.
Thanks
@Seldaek commented on GitHub (Nov 13, 2016):
That is indeed something we do not support, although it's an issue across the board really.. Should be considered for 2.0.
@lightswitch05 commented on GitHub (Feb 28, 2019):
libcurl supports proxy configurations via environment variables such as
https_proxy. Full documentation: https://curl.haxx.se/libcurl/c/libcurl-env.htmlThe one catch is that
SlackHandlerdoes not use curl, butSlackWebhookHandlerdoes. So, in a way this ticket could be implemented by using curl everywhere and allowing proxies to be managed through its existing functionality