$processors
$processors : callable[]
Sends notifications through Slack Webhooks
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$webhookUrl : string
Slack Webhook token
$slackRecord : \Monolog\Handler\Slack\SlackRecord
Instance of the SlackRecord util class preparing data for Slack API.
__construct(string $webhookUrl, string|null $channel = null, string|null $username = null, bool $useAttachment = true, string|null $iconEmoji = null, bool $useShortAttachment = false, bool $includeContextAndExtra = false, mixed $level = Logger::CRITICAL, bool $bubble = true, string[] $excludeFields = array()) : mixed
string | $webhookUrl | Slack Webhook URL |
string|null | $channel | Slack channel (encoded ID or name) |
string|null | $username | Name of a bot |
bool | $useAttachment | Whether the message should be added to Slack as attachment (plain text otherwise) |
string|null | $iconEmoji | The emoji name to use (or null) |
bool | $useShortAttachment | Whether the the context/extra messages added to Slack as attachments are in a short style |
bool | $includeContextAndExtra | Whether the attachment should include context and extra data |
mixed | $level | |
bool | $bubble | |
string[] | $excludeFields | Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] |