sevenlab/laravel-remote-logging
最新稳定版本:2.0.0
Composer 安装命令:
composer require sevenlab/laravel-remote-logging
包简介
Log errors to a remote server
README 文档
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.
Credits
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-09