Download the PHP package dbstudios/airbrake-bundle without Composer
On this page you can find all versions of the php package dbstudios/airbrake-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dbstudios/airbrake-bundle
More information about dbstudios/airbrake-bundle
Files in dbstudios/airbrake-bundle
Package airbrake-bundle
Short Description Airbrake integration for Symfony
License GPL-2.0
Informations about the package airbrake-bundle
Installation
Step 1: Install the Bundle
Step 2: Enable the Bundle
Step 3: Configure
While it is possible to add your API key and Project ID directly to config.yml
, this would cause your private API key to be
published to your VCS. It is recommended that you follow the examples below and place the Project ID and API key in
parameters.yml
.
The above example will set up the bundle with everything you need, and will tell the bundle to only send to Airbrake if
you are in the production environment. If you would like Airbrake logging to always be enabled, you can simply set
enabled
to true in the first YAML file in step 3.
Step 4: Set Up Monolog Watcher (optional)
AirbrakeBundle supports watching Monolog log files for certain log levels, and sending just those log entries to Airbrake. If you plan on using this feature, it is recommended that you follow the Symfony tutorial Adding a Session / Request Token.
To enable the log watcher, you will need to add the following to your services.yml
file (either the global app file or the one
in your application bundle).
That will set up a new Monolog handler as a service. Next, you'll need to add the following to your Monolog handler stack (for more information, please read How to Use Monolog to Write Logs, specifically the section on using handlers).