$processors
$processors : callable[]
Sends notifications through Slack API
$processors : callable[]
$formatter : ?\Monolog\Formatter\FormatterInterface
$level : int
$bubble : bool
$connectionString : string
$connectionTimeout : float
$resource : resource|null
$timeout : float
$writingTimeout : float
$lastSentBytes : ?int
$chunkSize : ?int
$persistent : bool
$errno : ?int
$errstr : ?string
$lastWritingAt : ?float
$token : string
Slack API token
$slackRecord : \Monolog\Handler\Slack\SlackRecord
Instance of the SlackRecord util class preparing data for Slack API.
__construct(string $token, string $channel, string|null $username = null, bool $useAttachment = true, string|null $iconEmoji = null, mixed $level = Logger::CRITICAL, bool $bubble = true, bool $useShortAttachment = false, bool $includeContextAndExtra = false, string[] $excludeFields = array(), bool $persistent = false, float $timeout = 0.0, float $writingTimeout = 10.0, ?float $connectionTimeout = null, ?int $chunkSize = null) : mixed
string | $token | Slack API token |
string | $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) |
mixed | $level | |
bool | $bubble | |
bool | $useShortAttachment | Whether 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 |
string[] | $excludeFields | Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] |
bool | $persistent | Flag to enable/disable persistent connections |
float | $timeout | Socket timeout to wait until the request is being aborted |
float | $writingTimeout | Socket timeout to wait until the request should've been sent/written |
?float | $connectionTimeout | Socket connect timeout to wait until the connection should've been established |
?int | $chunkSize | Sets the chunk size. Only has effect during connection in the writing cycle |
If no OpenSSL PHP extension configured