kunstmaan / sentry-bundle
THIS REPO IS DEPRECATED: replaced by Monolog | The SentryBundle for Symfony2 helps binds the raven-php module into a Symfony2 bundle for easy use with the framework. It will autoload an exception handler into the framework, so that all uncaught errors are sent to a Sentry server.
Installs: 24 886
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 14
Forks: 10
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- raven/raven: 0.7.*
- symfony/framework-bundle: >=2.1,<2.5.0
This package is not auto-updated.
Last update: 2022-02-01 12:21:14 UTC
README
IMPORTANT: We recommend that you no longer use this bundle. Since it's inception Monolog has gotten built in Sentry support. See https://github.com/KunstmaanLegacy/KunstmaanSentryBundle/issues/18 and https://github.com/Seldaek/monolog/pull/76/files
SentryBundle for Symfony2
This helps binds the raven-php module into a Symfony2 bundle for easy use with the framework. It will autoload an exception handler into the framework, so that all uncaught errors are sent to a Sentry server.
Important: This bundle is heavily inspired by Drew Butler's Airbrake bundle.
Installation requirements
You should be able to get Symfony 2.1 up and running before you can install the KunstmaanAdminBundle.
Installation instructions
Assuming you have installed composer.phar or composer binary:
$ composer require kunstmaan/sentry-bundle
Add the KunstmaanSentryBundle to your AppKernel.php file:
new Kunstmaan\SentryBundle\KunstmaanSentryBundle(),
Multiple environments support
To enable Sentry for a specific environment, add these lines to the config.yml file for the environment (ie. config_prod.yml) :
kunstmaan_sentry:
enabled: true
dsn: "http://nnn:nnn@12345.12345.12345.12345/1"
Note that Sentry logging is disabled by default.