2017 © Pedro Peláez
 

library laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

image

timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  • Sunday, May 14, 2017
  • by timetorock
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,736 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

Monolog Sentry for Laravel 5.x

Software License, (*1)

Laravel 5.x library for integration Monolog errors with Sentry sentry-laravel., (*2)

This library implies already installed sentry-laravel., (*3)

Installation

Go to the root of your Laravel project and run the following command:, (*4)

Laravel 5.4 or earlier:, (*5)

``` bash composer require timetorock/laravel-monolog-sentry 1.3, (*6)


Laravel 5.5+: ``` bash composer require timetorock/laravel-monolog-sentry

Laravel 5.4 or earlier

(Service will be auto-discovered by Laravel 5.5+), (*7)

Then in your config/app.php add the MonologSentryServiceProvider to your providers array, (*8)

'providers' => array(

    ...
    Timetorock\LaravelMonologSentry\Providers\MonologSentryServiceProvider::class,
),

Configuration

Your config/sentry.php file must have DSN from your Sentry project., (*9)

'dsn'     => 'https://***:***@sentry.yourdomain.com/{project}'

You can configure Raven through the config/sentry.php config file. All the available options are already in there together with their default values., (*10)

You can find more details about the available options in Raven using this link:, (*11)

https://github.com/getsentry/raven-php#configuration, (*12)

By default notification would be send for warning level and more., (*13)

You can change log level with sentry.level config option, must be a Monolog number., (*14)

Monolog\Logger levels:, (*15)

    DEBUG = 100;
    INFO = 200;
    NOTICE = 250;
    WARNING = 300;
    ERROR = 400;
    CRITICAL = 500;
    ALERT = 550;
    EMERGENCY = 600;

Testing

To test if your Sentry application is correctly grabbing your logs, simply launch php artisan tinker and execute a sample log like so:, (*16)

``` bash $ php artisan tinker, (*17)

Log::error("This is a test error. Sentry should get this."); ```, (*18)

Security

If you discover any security related issues, please email alejandronat@gmail.com or use the issue tracker., (*19)

Credits

License

The MIT License (MIT). Please see License File for more information., (*20)

The Versions

14/05 2017

dev-master

9999999-dev https://github.com/timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  Sources   Download

MIT

The Requires

 

by Aleksandr Natalenko

laravel log monolog sentry logs sentry-laravel laravel-logs

14/05 2017

v1.3

1.3.0.0 https://github.com/timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  Sources   Download

MIT

The Requires

 

by Aleksandr Natalenko

laravel log monolog sentry logs sentry-laravel laravel-logs

14/05 2017

v1.2

1.2.0.0 https://github.com/timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  Sources   Download

MIT

The Requires

 

by Aleksandr Natalenko

laravel log monolog sentry logs sentry-laravel laravel-logs

14/05 2017

v1.0

1.0.0.0 https://github.com/timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  Sources   Download

MIT

The Requires

 

by Aleksandr Natalenko

laravel log monolog sentry logs sentry-laravel laravel-logs

14/05 2017

v1.1

1.1.0.0 https://github.com/timetorock/laravel-monolog-sentry

Laravel 5.4 library for integration Monolog with Sentry

  Sources   Download

MIT

The Requires

 

by Aleksandr Natalenko

laravel log monolog sentry logs sentry-laravel laravel-logs