Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Reorganize files to match the "Reusable Bundles" structure
* Migrate services configuration to PHP
* Add `console.interactive_only` flag
* Add `slack.exclude_fields` and `slackwebhook.exclude_fields` configuration

## 3.10.0 (2023-11-06)

Expand Down
6 changes: 6 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
* - [bubble]: bool, defaults to true
* - [timeout]: float
* - [connection_timeout]: float
* - [exclude_fields]: list of excluded fields, defaults to empty array
*
* - slackwebhook:
* - webhook_url: slack webhook URL
Expand All @@ -280,6 +281,7 @@
* - [include_extra]: bool, defaults to false
* - [level]: level name or int value, defaults to DEBUG
* - [bubble]: bool, defaults to true
* - [exclude_fields]: list of excluded fields, defaults to empty array
*
* - slackbot:
* - team: slack team slug
Expand Down Expand Up @@ -551,6 +553,10 @@ public function getConfigTreeBuilder(): TreeBuilder
->scalarNode('include_extra')->defaultFalse()->end() // slack & slackwebhook
->scalarNode('icon_emoji')->defaultNull()->end() // slack & slackwebhook
->scalarNode('webhook_url')->end() // slackwebhook
->arrayNode('exclude_fields')
->canBeUnset()
->prototype('scalar')->end()
->end() // slack & slackwebhook
->scalarNode('team')->end() // slackbot
->scalarNode('notify')->defaultFalse()->end() // hipchat
->scalarNode('nickname')->defaultValue('Monolog')->end() // hipchat
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,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 @@ -685,6 +686,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$handler['include_extra'],
$handler['level'],
$handler['bubble'],
$handler['exclude_fields'],
]);
break;

Expand Down