PHPackages                             dakenf/release-profiler-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. dakenf/release-profiler-bundle

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

dakenf/release-profiler-bundle
==============================

This Bundle provides request logging and extended error reporting by slack or email

1.0.10(9y ago)5861MITPHPPHP ^5.4.0|^7.0

Since Aug 15Pushed 9y ago2 watchersCompare

[ Source](https://github.com/dakenf/ReleaseProfilerBundle)[ Packagist](https://packagist.org/packages/dakenf/release-profiler-bundle)[ Docs](https://daken.ru)[ RSS](/packages/dakenf-release-profiler-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (12)Versions (12)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1b1da5be85ace91e8ea64efe0530740e05789fcb06cbf30a115d9910f7824a0d/68747470733a2f2f7472617669732d63692e6f72672f64616b656e662f52656c6561736550726f66696c657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dakenf/ReleaseProfilerBundle)[![Code Coverage](https://camo.githubusercontent.com/b4067c5add887e118c72b207082be6113e451761db781a48b35dd26392daaba5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f64616b656e662f52656c6561736550726f66696c657242756e646c652e706e67)](https://scrutinizer-ci.com/g/dakenf/ReleaseProfilerBundle/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/50cc0ad00ce94e6d824426bbd325f8803a977971f8d56d72ee52dbc757e9decb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64616b656e662f52656c6561736550726f66696c657242756e646c652e706e67)](https://scrutinizer-ci.com/g/dakenf/ReleaseProfilerBundle/?branch=master)

Introduction
============

[](#introduction)

This bundle allows you to log all requests and responses from your symfony applications, post all errors to slack immediately and see what database queries happened on those requests.

It also shows you full stack trace of all logged database queries. If you use SonataAdminBundle you can easily show and filter requests, queries and errors.

On each request this bundle creates Daken\\ReleaseProfilerBundle\\Request object, checks if it should be persisted with log\_conditions.request configuration array. If any error occurred, it is added to request and posted to Slack or your custom notifier.

Each database query is appended to request too. You can configure database\_query\_time\_log\_threshold parameter so it will log only queries that last longer than specific time.

When kernel terminates, Request object is passed to configured PersistManager. It can be redis, database or your own service that implements PersistManagerInterface. When redis is used, Request object is serialized and pushed to queue in redis. After that it is persisted to database using `daken:profiler:flush` command.

Using redis is strongly recommended as it won't add significant overhead to each of your requests.

[![Request list](Resources/readme_images/request_list.png)](Resources/readme_images/request_list.png)

[![Request details](Resources/readme_images/request.png)](Resources/readme_images/request.png)

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

To install :

```
$ composer require dakenf/release-profiler-bundle "~1"

```

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
