Download the PHP package jenssegers/rollbar without Composer
On this page you can find all versions of the php package jenssegers/rollbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jenssegers/rollbar
More information about jenssegers/rollbar
Files in jenssegers/rollbar
Package rollbar
Short Description Rollbar error monitoring integration for Laravel projects
License MIT
Homepage https://github.com/jenssegers/laravel-rollbar
Informations about the package rollbar
Laravel Rollbar
Rollbar error monitoring integration for Laravel projects. This library adds a listener to Laravel's logging component. Laravel's session information will be sent in to Rollbar, as well as some other helpful information such as 'environment', 'server', and 'session'.
Installation
Install using composer:
Add the service provider to the 'providers'
array in config/app.php
:
If you only want to enable Rollbar reporting for certain environments you can conditionally load the service provider in your AppServiceProvider
:
Configuration
This package supports configuration through the services configuration file located in config/services.php
. All configuration variables will be directly passed to Rollbar:
The level variable defines the minimum log level at which log messages are sent to Rollbar. For development you could set this either to debug
to send all log messages, or to none
to sent no messages at all. For production you could set this to error
so that all info and debug messages are ignored.
Usage
To automatically monitor exceptions, simply use the Log
facade in your error handler in app/Exceptions/Handler.php
:
For Laravel 4 installations, this is located in app/start/global.php
:
Your other log messages will also be sent to Rollbar:
NOTE: Fatal exceptions will always be sent to Rollbar.
Context informaton
You can pass user information as context like this:
Or pass some extra information: