src/Watchers/ExceptionWatcher.php
public function recordException(MessageLogged $event)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($event)) {
            return;
        }

        $exception = $event->context['exception'];

        Telescope::recordException(
            IncomingExceptionEntry::make($exception, [
                'class' => get_class($exception),
                'file' => $exception->getFile(),
                'line' => $exception->getLine(),
                'message' => $exception->getMessage(),
                'trace' => $exception->getTrace(),
                'line_preview' => ExceptionContext::get($exception),
            ])->tags($this->tags($event))
        );
    }
public function recordException(MessageLogged $event)
    {
        if (! Telescope::isRecording() || $this->shouldIgnore($event)) {
            return;
        }

        $exception = $event->context['exception'];

        Telescope::recordException(
            IncomingExceptionEntry::make($exception, [
                'class' => get_class($exception),
                'file' => $exception->getFile(),
                'line' => $exception->getLine(),
                'message' => $exception->getMessage(),
                'trace' => $exception->getTrace(),
                'line_preview' => ExceptionContext::get($exception),
            ])->tags($this->tags($event))
        );
    }
public function recordException ( MessageLogged $ event ) { if ( ! Telescope :: isRecording ( ) || $ this -> shouldIgnore ( $ event ) ) { return ; } $ exception = $ event -> context [ 'exception' ] ; Telescope :: recordException ( IncomingExceptionEntry :: make ( $ exception , [ 'class' => get_class ( $ exception ) , 'file' => $ exception -> getFile ( ) , 'line' => $ exception -> getLine ( ) , 'message' => $ exception -> getMessage ( ) , 'trace' => $ exception -> getTrace ( ) , 'line_preview' => ExceptionContext :: get ( $ exception ) , ] ) -> tags ( $ this -> tags ( $ event ) ) ) ; }
Record an exception was logged.

@param  \Illuminate\Log\Events\MessageLogged  $event
@return void
Record an exception was logged .