szymcode/sentry-substitute

There is no license information available for the latest version (1.0.0) of this package.

Package intended to replace Sentry in daily work.

1.0.0 2024-02-07 21:30 UTC

This package is auto-updated.

Last update: 2024-04-22 20:32:56 UTC


README

Package intended to replace Sentry in daily work. Handles errors in the web application and forwards them to the error panel. Link to Packagist


🛠️ Installation

• First make sure u have installed latest version of Composer.

• Install package in your Laravel project with Composer

composer require szymcode/sentry-substitute

❓ Usage

• Enable capturing exceptions to report them to the error panel by making the following changes to the App/Exceptions/Handler.php file:

use szymcode\sentry_substitute\ErrorHandling;

public function register(): void
{
    $this->reportable(function (Throwable $e) {
        ErrorHandling::getErrorMessage($e);  // captures the error message and sends it to the /api/errors endpoint
    });
}