天天看点

laravel log

laravel框架在Illuminate\Foundation\Exceptions\Handler中设置了

protected $internalDontReport = [

        AuthenticationException::class,

        AuthorizationException::class,

        HttpException::class,

        HttpResponseException::class,

        ModelNotFoundException::class,

        SuspiciousOperationException::class,

        TokenMismatchException::class,

        ValidationException::class,

];

即以上异常不会记录日志,只需要在app\Exceptions\Handler中设置