wiebekn/dawilog-php
Composer 安装命令:
composer require wiebekn/dawilog-php
包简介
client for dawilog
README 文档
README
install
composer require wiebekn/dawilog-php
add to .env
DAWILOG_DSN=
config/app.php
Dawilog\Laravel\ServiceProvider::class,
app/Exceptions/Handler.php (Laravel 8)
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('dawilog') && $this->shouldReport($e)) {
app('dawilog')->sendException($e);
}
});
}
app/Exceptions/Handler.php (Laravel 7)
public function report(Throwable $exception)
{
if (app()->bound('dawilog') && $this->shouldReport($exception)) {
app('dawilog')->sendException($exception);
}
parent::report($exception);
}
app/Exceptions/Handler.php (Laravel 5 & 6)
public function report(Exception $exception)
{
if ($this->shouldReport($exception) && app()->bound('dawilog')) {
app('dawilog')->sendException($exception);
}
parent::report($exception);
}
config/dawilog.php
php artisan vendor:publish --provider="Dawilog\Laravel\ServiceProvider" --tag="config"
统计信息
- 总下载量: 2.32k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-31