Laravel\Lumen\Exceptions\Handler::report PHP Method

report() public method

Report or log an exception.
public report ( Exception $e ) : void
$e Exception
return void
    public function report(Exception $e)
    {
        if ($this->shouldntReport($e)) {
            return;
        }
        try {
            $logger = app('Psr\\Log\\LoggerInterface');
        } catch (Exception $ex) {
            throw $e;
            // throw the original exception
        }
        $logger->error($e);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @return mixed
  */
 public function getReporter() : callable
 {
     $default = function (Exception $e) {
         parent::report($e);
     };
     return $this->reporter ?: $default;
 }
All Usage Examples Of Laravel\Lumen\Exceptions\Handler::report