2017 © Pedro Peláez
 

library error-bundle

Email notify about errors and exceptions happened in production mode

image

olegstepura/error-bundle

Email notify about errors and exceptions happened in production mode

  • Wednesday, April 18, 2012
  • by olegstepura
  • Repository
  • 1 Watchers
  • 3 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OstErrorBundle

Render an error if IP is in allowed list or send an email on each error raised or exception thrown in production mode of a deployed symfony application (you should know that something went wrong)., (*1)

Usage

Install the bundle as usual. Enable the bundle in AppKernel for all modes:, (*2)

app/AppKernel.php, (*3)

``` php <?php $bundles = array( // ... new Ost\ErrorBundle\OstErrorBundle($this), // ... );, (*4)


Be sure to check that mail sending works with your current configuration. Now edit configuration files: `app/config/config.yml` ``` yaml ost_error: display: ips: ['10.10.10.2', '10.10.10.3']

Here we entered the IP's from which you are allowed to see the warning notifications on the site in production mode (in debug it's converted to exceptions by Symfony)., (*5)

app/config/config_dev.yml, (*6)

``` yaml ost_error: mailer: false display: true, (*7)


Disabled the mailer in dev mode since you are actually not going to recieve mails on errors while in dev mode. `app/config/config_prod.yml` ``` yaml ost_error: mailer: to: your.email@provider.com from: server.email@server.com report_not_found: false

Just enter your mail here. And tick the option if you want to recieve notifications on NotFoundHttpException., (*8)

The Versions

18/04 2012

dev-master

9999999-dev

Email notify about errors and exceptions happened in production mode

  Sources   Download

MIT

The Requires