PHPackages                             xi/error-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. xi/error-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

xi/error-bundle
===============

Error handling and assertion bundle for Symfony2

v1.1(11y ago)0711[4 issues](https://github.com/xi-project/xi-error-bundle/issues)BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jan 30Pushed 11y agoCompare

[ Source](https://github.com/xi-project/xi-error-bundle)[ Packagist](https://packagist.org/packages/xi/error-bundle)[ Docs](http://github.com/xi-project/xi-error-bundle)[ RSS](/packages/xi-error-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (4)Used By (0)

xi-error-bundle
===============

[](#xi-error-bundle)

This is a Symfony2 bundle for error and exception handling and logging. It also includes component/service for formatting user readable exception messages according to environment.

[![Build Status](https://camo.githubusercontent.com/ceb62648dd3771317bfc057052d007c71d674ef04b94809df10e62c557d83247/68747470733a2f2f7472617669732d63692e6f72672f78692d70726f6a6563742f78692d6572726f722d62756e646c652e706e67)](https://travis-ci.org/xi-project/xi-error-bundle)

Installation
------------

[](#installation)

This bundle requires:

- PHP &gt;=5.3
- Symfony &gt;=2.1
- Monolog &gt;= 1.3

Monolog 1.3 or greater and compatible Symfony Monolog bridge is required, since that's the first PSR-3 compatible version.

Add to composer.json:

```
"xi/error-bundle": "1.*"

```

See packagist for further versions:

Exception logging
-----------------

[](#exception-logging)

Include XiErrorBundle in your AppKernel.php, and you get automatic exception logging. Logs are created in *%kernel.logs\_dir%/exception.%kernel.environment%.log*.

```
