Enable remote logging to Sentry into symfony1 applications.
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 11 commits behind LExpress:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
README.md
composer.json

README.md

sfRavenPlugin

Enable remote logging to Sentry into symfony1 applications.

  • Fatal errors (syntax error, out of memory)
  • Warnings (undefined variable, headers sent, deprecated)
  • Exceptions
  • Any logged message (the logger level can be configured)

Install

With composer

composer require lexpress/sfRavenPlugin
composer update lexpress/sfRavenPlugin

Add to your project configuration:

# config/ProjectConfiguration.php

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array(
      // ...
      'sfRavenPlugin',
    ));
  }
}

Enable logging to all your environments:

# app/*/config/settings.yml

prod:
  .settings:
    logging_enabled: true

Configure the Raven client. The DSN can be found in the getsentry interface.

# app/[app_name]/config/raven.yml
# OR config/raven.yml

all:
  dsn: udp://11111111111111111111111111111111:22222222222222222222222222222222@localhost:9001/1
  exclude_exceptions:
    - sfStopException