Download the PHP package timetorock/laravel-monolog-sentry without Composer
On this page you can find all versions of the php package timetorock/laravel-monolog-sentry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download timetorock/laravel-monolog-sentry
More information about timetorock/laravel-monolog-sentry
Files in timetorock/laravel-monolog-sentry
Package laravel-monolog-sentry
Short Description Laravel 5.x.x library for integration Monolog Sentry
License MIT
Homepage https://github.com/timetorock/laravel-monolog-sentry
Informations about the package laravel-monolog-sentry
Monolog Sentry for Laravel 5.x
Laravel 5.x library for integration Monolog errors with Sentry sentry-laravel.
This library implies already installed sentry-laravel.
Installation
Go to the root of your Laravel project and run the following command:
Laravel 5.4 or earlier:
Laravel 5.5+:
Laravel 5.4 or earlier
(Service will be auto-discovered by Laravel 5.5+)
Then in your config/app.php
add the MonologSentryServiceProvider
to your providers
array
Configuration
Your config/sentry.php
file must have DSN from your Sentry 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.
You can find more details about the available options in Raven using this link:
https://github.com/getsentry/raven-php#configuration
By default notification would be send for warning
level and more.
You can change log level with sentry.level
config option, must be a Monolog number.
Monolog\Logger
levels:
Testing
To test if your Sentry application is correctly grabbing your logs, simply launch php artisan tinker
and execute a sample log like so:
Security
If you discover any security related issues, please email [email protected] or use the issue tracker.
Credits
- Aleksandr Natalenko
- All Contributors
License
The MIT License (MIT). Please see License File for more information.