From cea89ca504ec6c92dba0d2d27630d4c6ec911941 Mon Sep 17 00:00:00 2001 From: Peter Potrowl Date: Mon, 12 Jan 2026 15:59:40 +0100 Subject: [PATCH] Fix sentry.yaml for MonologBundle ^4.0 (#1908) * Fix sentry.yaml for MonologBundle ^4.0 * Update sentry.yaml --- .../sentry-symfony/5.0/config/packages/sentry.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sentry/sentry-symfony/5.0/config/packages/sentry.yaml b/sentry/sentry-symfony/5.0/config/packages/sentry.yaml index d6165de9..44058b72 100644 --- a/sentry/sentry-symfony/5.0/config/packages/sentry.yaml +++ b/sentry/sentry-symfony/5.0/config/packages/sentry.yaml @@ -19,18 +19,21 @@ when@prod: # # Use this only if you don't want to use structured logging and instead receive # # certain log levels as errors. # sentry: -# type: sentry -# level: !php/const Monolog\Logger::ERROR -# hub_id: Sentry\State\HubInterface -# fill_extra_context: true # Enables sending monolog context to Sentry -# process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders +# type: service +# id: Sentry\Monolog\Handler # # # Use this for structured log integration # sentry_logs: # type: service # id: Sentry\SentryBundle\Monolog\LogsHandler # +# # Enable one of the two services below, depending on your choice above # services: +# Sentry\Monolog\Handler: +# arguments: +# $hub: '@Sentry\State\HubInterface' +# $level: !php/const Monolog\Logger::ERROR +# $fillExtraContext: true # Enables sending monolog context to Sentry # Sentry\SentryBundle\Monolog\LogsHandler: # arguments: # - !php/const Monolog\Logger::INFO