Redexperts Errbit Bundle
, (*1)
This bundle integrates errbit and [errbitPHP] (https://github.com/emgiezet/errbitPHP) client with Symfony 2 by kernel.exception event listener., (*2)
Installation
Add RedexpertsErrbitBundle in your composer.json:, (*3)
{
"require": {
"redexperts/errbit-bundle": "dev-master"
}
}
Download the bundle by running the command:, (*4)
``` bash
$ php composer.phar update redexperts/errbit-bundle, (*5)
Enable the bundle in the kernel:
``` php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Redexperts\ErrbitBundle\RedexpertsErrbitBundle(),
);
}
Configuration
Configure bundle in your /app/config.yml file:, (*6)
# /app/config.yml
redexperts_errbit:
errbit:
errbit_enable_log: true #default true - enable or disable errbit loggining
api_key: API_KEY #errbit API KEY
host: HOST #errbit host
port: PORT # default 80
environment_name: ENVIRONMENT_NAME #default local - can be test,prod etc.
skipped_exceptions: [] #list of skipped exceptions which you do not need to log by errbit
That's it, (*7)