1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 10:06:08 +02:00

SlackWebhookHandler: use footer for username & footer_icon for userIcon (#1617)

* Use footer for username & footer_icon for userIcon

* Update test case for SlackWebhookHandler
This commit is contained in:
Bei Xiao
2022-03-13 21:29:18 +02:00
committed by GitHub
parent baf2d9d4a7
commit f9a8e87563
2 changed files with 57 additions and 6 deletions

View File

@@ -146,12 +146,14 @@ class SlackRecord
if ($this->useAttachment) {
$attachment = array(
'fallback' => $message,
'text' => $message,
'color' => $this->getAttachmentColor($record['level']),
'fields' => array(),
'mrkdwn_in' => array('fields'),
'ts' => $record['datetime']->getTimestamp(),
'fallback' => $message,
'text' => $message,
'color' => $this->getAttachmentColor($record['level']),
'fields' => array(),
'mrkdwn_in' => array('fields'),
'ts' => $record['datetime']->getTimestamp(),
'footer' => $this->username,
'footer_icon' => $this->userIcon,
);
if ($this->useShortAttachment) {