redexperts/errbit-bundle

Symfony Errbit Integration Bundle

v1.0 2015-02-13 11:46 UTC

This package is not auto-updated.

Last update: 2024-10-26 15:56:56 UTC


README

Build Status

This bundle integrates errbit and [errbitPHP] (https://github.com/emgiezet/errbitPHP) client with Symfony 2 by kernel.exception event listener.

Installation

Add RedexpertsErrbitBundle in your composer.json:

{
    "require": {
        "redexperts/errbit-bundle": "dev-master"
    }
}

Download the bundle by running the command:

$ php composer.phar update redexperts/errbit-bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Redexperts\ErrbitBundle\RedexpertsErrbitBundle(),
    );
}

Configuration

Configure bundle in your /app/config.yml file:

# /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