提升数字/slack-exception-logger

该包最新版本(dev-master)没有可用的许可信息。

Laravel包,用于将异常记录到Slack。

dev-master 2019-01-30 10:22 UTC

This package is not auto-updated.

Last update: 2021-11-07 17:28:31 UTC


README

将以下代码添加到您的 app\Exceptions\Handler.php 文件中的 report 方法中:

public function report(Exception $exception)
{
    if ($this->shouldReport($exception)){
        (new SlackExceptionLogger())->log(YOUR_SLACK_WEBHOOK, $exception);
    }
    
    parent::report($exception);
}