COLOR_DANGER
COLOR_DANGER = 'danger'
Slack record utility helping to log to Slack webhooks or API.
$channel : string|null
Slack channel (encoded ID or name)
$username : string|null
Name of a bot
$userIcon : string|null
User icon e.g. 'ghost', 'http://example.com/user.png'
$useAttachment : bool
Whether the message should be added to Slack as attachment (plain text otherwise)
$useShortAttachment : bool
Whether the the context/extra messages added to Slack as attachments are in a short style
$includeContextAndExtra : bool
Whether the attachment should include context and extra data
$excludeFields : string[]
Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2']
$formatter : ?\Monolog\Formatter\FormatterInterface
$normalizerFormatter : \Monolog\Formatter\NormalizerFormatter
__construct(?string $channel = null, ?string $username = null, bool $useAttachment = true, ?string $userIcon = null, bool $useShortAttachment = false, bool $includeContextAndExtra = false, string[] $excludeFields = array(), \Monolog\Formatter\FormatterInterface $formatter = null) : mixed
?string | $channel | |
?string | $username | |
bool | $useAttachment | |
?string | $userIcon | |
bool | $useShortAttachment | |
bool | $includeContextAndExtra | |
string[] | $excludeFields | |
\Monolog\Formatter\FormatterInterface | $formatter |