Files
archived-recipes-contrib/sentry/sentry-symfony/4.0/config/packages/sentry.yaml
Johan Mulder 3d1949e388 Updated documentation links for the sentry Monolog integration (#1922)
The old link apparently no longer contains documentation about the
Monolog integration.
2026-01-15 21:00:47 +01:00

30 lines
934 B
YAML

when@prod:
sentry:
dsn: '%env(SENTRY_DSN)%'
# If you are using Monolog, you also need this additional configuration to log the errors correctly:
# https://docs.sentry.io/platforms/php/guides/symfony/integrations/monolog/
# register_error_listener: false
# monolog:
# handlers:
# sentry:
# type: sentry
# level: !php/const Monolog\Logger::ERROR
# hub_id: Sentry\State\HubInterface
# If you are using MonologBundle prior to v3.7, you need to configure the handler as a service instead:
# monolog:
# handlers:
# sentry:
# type: service
# id: Sentry\Monolog\Handler
# services:
# Sentry\Monolog\Handler:
# arguments:
# $hub: '@Sentry\State\HubInterface'
# $level: !php/const Monolog\Logger::ERROR
# $bubble: false