@@ -10,7 +10,7 @@ when@prod:
1010 - ' Symfony\Component\Debug\Exception\FatalErrorException'
1111#
1212# # If you are using Monolog, you also need this additional configuration to log the errors correctly:
13- # # https://docs.sentry.io/platforms/php/guides/symfony/# monolog-integration
13+ # # https://docs.sentry.io/platforms/php/guides/symfony/integrations/ monolog/
1414# register_error_listener: false
1515# register_error_handler: false
1616#
@@ -19,18 +19,21 @@ when@prod:
1919# # Use this only if you don't want to use structured logging and instead receive
2020# # certain log levels as errors.
2121# sentry:
22- # type: sentry
23- # level: !php/const Monolog\Logger::ERROR
24- # hub_id: Sentry\State\HubInterface
25- # fill_extra_context: true # Enables sending monolog context to Sentry
26- # process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders
22+ # type: service
23+ # id: Sentry\Monolog\Handler
2724#
2825# # Use this for structured log integration
2926# sentry_logs:
3027# type: service
3128# id: Sentry\SentryBundle\Monolog\LogsHandler
3229#
30+ # # Enable one of the two services below, depending on your choice above
3331# services:
32+ # Sentry\Monolog\Handler:
33+ # arguments:
34+ # $hub: '@Sentry\State\HubInterface'
35+ # $level: !php/const Monolog\Logger::ERROR
36+ # $fillExtraContext: true # Enables sending monolog context to Sentry
3437# Sentry\SentryBundle\Monolog\LogsHandler:
3538# arguments:
3639# - !php/const Monolog\Logger::INFO
0 commit comments