Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
* - [bubble]: bool, defaults to true
* - [timeout]: float
* - [connection_timeout]: float
* - [exclude_fields]: array, defaults to empty array
*
* - slackwebhook:
* - webhook_url: slack webhook URL
Expand All @@ -278,6 +279,7 @@
* - [include_extra]: bool, defaults to false
* - [level]: level name or int value, defaults to DEBUG
* - [bubble]: bool, defaults to true
* - [exclude_fields]: array, defaults to empty array
*
* - slackbot:
* - team: slack team slug
Expand Down Expand Up @@ -546,6 +548,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->scalarNode('use_attachment')->defaultTrue()->end() // slack & slackwebhook
->scalarNode('use_short_attachment')->defaultFalse()->end() // slack & slackwebhook
->scalarNode('include_extra')->defaultFalse()->end() // slack & slackwebhook
->variableNode('exclude_fields')->defaultValue([])->end() // slack & slackwebhook
->scalarNode('icon_emoji')->defaultNull()->end() // slack & slackwebhook
->scalarNode('webhook_url')->end() // slackwebhook
->scalarNode('team')->end() // slackbot
Expand Down
2 changes: 2 additions & 0 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$handler['bubble'],
$handler['use_short_attachment'],
$handler['include_extra'],
$handler['exclude_fields'],
]);
if (isset($handler['timeout'])) {
$definition->addMethodCall('setTimeout', [$handler['timeout']]);
Expand All @@ -684,6 +685,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$handler['include_extra'],
$handler['level'],
$handler['bubble'],
$handler['exclude_fields'],
]);
break;

Expand Down
Loading