CoreProc / raven-laravel by coreproc

A Laravel 5.1 library that easily integrates raven-php to centralize your logs using Sentry
2,823
8
5
Package Data
Maintainer Username: coreproc
Maintainer Contact: chrisbjr@gmail.com (Chris Bautista)
Package Create Date: 2015-10-09
Package Last Update: 2015-10-09
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-17 15:01:23
Package Statistics
Total Downloads: 2,823
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 8
Total Watchers: 5
Total Forks: 1
Total Open Issues: 0

Raven for Laravel 5.1

Latest Version on Packagist Software License Total Downloads

A Laravel 5.1 library that easily integrates raven-php to centralize your logs using Sentry.

Install

Go to the root of your Laravel 5.1 project and run the following command:

composer require coreproc/raven-laravel

Then in your config/app.php add the RavenServiceProvider to your providers array

'providers' => array(

    ...
    Coreproc\RavenLaravel\Providers\RavenServiceProvider::class,
),

Back on your terminal, run the following command to publish the sentry.php config file:

php artisan vendor:publish

Edit your config/sentry.php file and enable Sentry logging by setting enabled to true and plugging in your DSN from your Sentry project.

'enabled' => true,

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

Configuration

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

You can find more details about the available options in Raven using this link:

https://github.com/getsentry/raven-php#configuration

Testing

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

$ php artisan tinker
>>> Log::error("This is a test error. Sentry should get this.");

Security

If you discover any security related issues, please email chris.bautista@coreproc.ph instead of using the issue tracker.

Credits

License

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