atijust/laravel-rollbar

Rollbar integration for Laravel

dev-master 2014-06-29 22:22 UTC

This package is not auto-updated.

Last update: 2024-12-17 02:49:29 UTC


README

Build Status Coverage Status Latest Stable Version Latest Unstable Version License Dependency Status

Installation

Add atijust/laravel-rollbar to your composer.json:

{
    "require": {
        "atijust/laravel-rollbar": "dev-master"
    }
}

Add the service provider in app/config/app.php:

'Atijust\LaravelRollbar\LaravelRollbarServiceProvider',

Publish the configuration file:

php artisan config:publish atijust/laravel-rollbar

Add your rollbar access token in app/config/packages/atijust/laravel-rollbar/config.php:

'access_token' => 'your rollbar access token',

Usage

// to report exceptions
Log::error($exception);

// to send log-like messages 
Log::info('message', ['foo' => 'bar']);