Download the PHP package potsky/rollbar-laravel without Composer
On this page you can find all versions of the php package potsky/rollbar-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download potsky/rollbar-laravel
More information about potsky/rollbar-laravel
Files in potsky/rollbar-laravel
Package rollbar-laravel
Short Description Rollbar error monitoring integration for Laravel projects
License MIT
Homepage https://github.com/potsky/rollbar-php-laravel
Informations about the package rollbar-laravel
Laravel Rollbar
Installation
Install using composer:
Add Project Access Token post_server_item
from Rollbar.com -> Settings -> Project Access Tokens to .env:
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.
If you compile configuration files, do not use a callback function directly. Define the function in a helper include for example and configure the service like this :
In the helper file:
Usage
Fatal error and exceptions handled by Laravel are automatically sent to Rollbar. You do not need to add something in app/Exceptions/Handler.php
.
Your other log messages will also be sent to Rollbar:
Context informaton
You can pass extra information: