sevenlab / laravel-remote-logging
Log errors to a remote server
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3|^7.0
- illuminate/support: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0
- laravel/framework: 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0
- spatie/laravel-failed-job-monitor: ^3.0
Requires (Dev)
- phpunit/phpunit: ^6.5.4|^7.0|^9.0
README
Remote logging
This Laravel package send the errors or failed jobs occuring in your application to an external server. For example to display these errors or failed jobs on a dashboard like the spatie/dashboard.spatie.be.
For the failed jobs logging we are extending spatie/laravel-failed-job-monitor and overwriting their default Notification class to allow us to send it to your remote server.
Installation
You can install the package via Composer:
composer require sevenlab/laravel-remote-logging
The package will automatically register itself.
You can publish the config files with:
php artisan vendor:publish --provider="SevenLab\RemoteLogging\RemoteLoggingServiceProvider"
And finally you should install the exception handling in the report
function in the Exception handler (app/Exceptions/Handler.php
).
... if (app()->bound('remote-logging')) { app('remote-logging')->captureException($exception); } ...
Usage
By default it will send all errors and failed jobs that occur into your application to the remote server specified in the config file.