[PR #507] [MERGED] #493 Include context in slack extra info. #1193

Closed
opened 2026-03-04 03:06:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Seldaek/monolog/pull/507
Author: @jamiel
Created: 2/9/2015
Status: Merged
Merged: 2/11/2015
Merged by: @Seldaek

Base: masterHead: master


📝 Commits (2)

  • 01e593c #493 Include context in slack extra info.
  • 6f0e7f6 #493 Ensure extra and context fields are only added when they are present and not empty. Ensure both follow have consistent formatting.

📊 Changes

1 file changed (+58 additions, -9 deletions)

View changed files

📝 src/Monolog/Handler/SlackHandler.php (+58 -9)

📄 Description

Adds the context items to Slack attachments.

$handler->addError('Foo', array('foo' => 'bar'));

screen shot 2015-02-09 at 22 42 36


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Seldaek/monolog/pull/507 **Author:** [@jamiel](https://github.com/jamiel) **Created:** 2/9/2015 **Status:** ✅ Merged **Merged:** 2/11/2015 **Merged by:** [@Seldaek](https://github.com/Seldaek) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`01e593c`](https://github.com/Seldaek/monolog/commit/01e593cdeb71215deff5daa931ca7fe4e384e164) #493 Include context in slack extra info. - [`6f0e7f6`](https://github.com/Seldaek/monolog/commit/6f0e7f666e39b6e606d9837b146404312bec1a03) #493 Ensure extra and context fields are only added when they are present and not empty. Ensure both follow have consistent formatting. ### 📊 Changes **1 file changed** (+58 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/Monolog/Handler/SlackHandler.php` (+58 -9) </details> ### 📄 Description Adds the context items to Slack attachments. ``` $handler->addError('Foo', array('foo' => 'bar')); ``` ![screen shot 2015-02-09 at 22 42 36](https://cloud.githubusercontent.com/assets/33498/6117543/219ff654-b0ad-11e4-8958-30ea93c1fa40.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 03:06:36 +03:00
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#1193
No description provided.