rcrowe / laravel-sentry
Tasty intergration of Laravel & Sentry for sweet reporting of your logs
Installs: 2 756
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 4
Forks: 2
Open Issues: 0
pkg:composer/rcrowe/laravel-sentry
Requires
- raven/raven: 0.6.*
Requires (Dev)
- illuminate/foundation: 4.0.*
- mockery/mockery: 0.7.2
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2025-09-29 01:20:58 UTC
README
use rcrowe\Raven
Better Laravel intergration with async transmittion.
laravel-sentry is unsupported!
laravel-sentry
Tasty integration of Laravel & Sentry for sweet reporting of your logs
Using the same logging functions will send it Sentry, for example:
Log::error($exception)
will send the exception to Sentry. You can control at which level log messages are reported by changing the level in the config file. The default level is error, this means that Log::info(…) will not be reported to Sentry.
Installation
Add rcrowe\laravel-sentry as a requirement to composer.json:
{ "require": { "rcrowe/laravel-sentry": "0.2.*" } }
Update your packages with composer update or install with composer install.
Once Composer has installed or updated your packages you need to register Sentry with Laravel itself. Open up app/config/app.php and find the providers key towards the bottom and add:
'rcrowe\Sentry\SentryServiceProvider'
Configuration
Sentry configuration file can be extended by creating app/config/packages/rcrowe/laravel-sentry/config.php. You can find the default configuration file at vendor/rcrowe/laravel-sentry/src/config/config.php.
You can quickly publish a configuration file by running the following Artisan command.
$ php artisan config:publish rcrowe/laravel-sentry
Note: Data will only be sent to Sentry if your environment matches the environments defined in the config file.