symfony / monolog-bundle

Symfony Monolog Bundle
symfony.com
MIT License
2.9k stars 232 forks source link

Allow setting exclude_fields through the bundle configuration #459

Open doenietzomoeilijk opened 1 year ago

doenietzomoeilijk commented 1 year ago

The SlackRecord used by the Slack and SlackWebhook handlers has a constructor parameter to exclude certain fields from being sent to Slack. This is a great way to log exceptions but not have them clutter up your Slack channels, for example. Currently, the configuration for the bundle doesn't have a key for this field, which means it can't be configured.

There's been a PR open (#402 by @Gwemox), but for some reason it's just been sitting there, gathering dust for some two years. It'd be great if someone could either merge it, or, in case that's not an option, offer some guidance on What To Do to get it in a mergable state.