Logging Symfony Errors with Sentry
![Logging Symfony Errors with Sentry](https://images.ctfassets.net/em6l9zw4tzag/3jhUv3hnxcunUFJiUngRFG/c36710c7c453ac9d8a1087393c333234/sentry-and-symfony.png?w=980&h=360&q=50&fm=png)
Following up on our native Laravel error tracking integration, we’re happy to announce native integration with Symfony via the sentry-symfony package.
Getting Started
Getting started with Symfony error tracking on Sentry is now easier than ever.
Install the sentry/sentry-symfony
package:
$ composer require sentry/sentry-symfony
Enable the bundle in app/AppKernel.php
:
<?php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Sentry/SentryBundle/SentryBundle(),
);
// ...
}
// ...
}
And lastly, add your DSN to app/config/config.yml
:
sentry:
dsn: "https://public:secret@sentry.example.com/1"
Learn More
Take a look at the sentry-symfony project on GitHub to learn more about how things are implemented, as well as additional details on using it with Sentry.