2017 © Pedro Peláez
 

library loggly-laravel

Loggly logging integration for Laravel projects

image

utkarshx/loggly-laravel

Loggly logging integration for Laravel projects

  • Sunday, August 2, 2015
  • by utkarshx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Loggly

Loggly logging and error integration for Laravel 5. Based on laravel-rollbar by jenssegers., (*1)

This package is still IN DEVELOPMENT.

Installation

Install using composer:, (*2)

composer require utkarshx/loggly-laravel

Add the service provider to the 'providers' array in config/app.php:, (*3)

'Utkarshx\Loggly\LogglyServiceProvider',

Configuration

This package supports configuration through the services configuration file located in app/config/services.php. All configuration variables will be directly passed to Rollbar:, (*4)

'loggly' => [
    'key' => 'your-loggly-token',
    'level' => 'debug',
    'tags' => ['your-tokens]
],

The level variable defines the minimum log level at which log messages are sent to Loggly., (*5)

Usage

To automatically monitor exceptions, simply use the Log facade in your error handler in app/Exceptions/Handler.php:, (*6)

public function report(Exception $e)
{
    \Log::error($e);

    return parent::report($e);
}

For Laravel 4 installations, this is located in app/start/global.php:, (*7)

App::error(function(Exception $exception, $code)
{
    Log::error($exception);
});

Your other log messages will also be sent to Loggly:, (*8)

\Log::debug('Here is some debug information');

The Versions

02/08 2015

dev-master

9999999-dev

Loggly logging integration for Laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel logging error monitoring loggly

02/08 2015

0.1

0.1.0.0

Loggly logging integration for Laravel projects

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel logging error monitoring loggly