mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[PR #894] [MERGED] Slack improvements #1402
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#1402
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?
📋 Pull Request Information
Original PR: https://github.com/Seldaek/monolog/pull/894
Author: @mintobit
Created: 11/27/2016
Status: ✅ Merged
Merged: 12/13/2016
Merged by: @Seldaek
Base:
1.x← Head:slack_improvements📝 Commits (8)
97864e1Apply formatter only when useAttachment == false427e460Show time within attachment footer75647ccSupport url for user iconaacf9c6Improve array formatting for context/extra1a60ad2Make username optional945040dSupport extra/context field blacklisting35b97d4Update Slack related tests3fa1df3Call json_encode in php < 5.4 compatible way📊 Changes
5 files changed (+201 additions, -104 deletions)
View changed files
📝
src/Monolog/Handler/Slack/SlackRecord.php(+87 -41)📝
src/Monolog/Handler/SlackHandler.php(+4 -2)📝
src/Monolog/Handler/SlackWebhookHandler.php(+4 -2)📝
tests/Monolog/Handler/Slack/SlackRecordTest.php(+101 -55)📝
tests/Monolog/Handler/SlackWebhookHandlerTest.php(+5 -4)📄 Description
While #846 was focused on providing the ability to communicate with Slack via webhooks/bot, there's a bunch of improvements that can be done before 2.x. Thanks to @greeny, @websirnik, @jewome62 and @mirfilip for ideas.
extra/context,datetime,levelfrom message when attachment is usedtsattachment key to displaydatetimeconsidering user timezonecontext/extrainclude_stacktracesoption when attachment is not used and always include stacktraces when attachment is usedextra/contextfield exclusion🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.