TahsinGokalp / lett

Error reporting tool for laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lett

Laravel package for logging errors to Lett-Tracker

Latest Version on Packagist Build Status Quality Gate Status Bugs Code Smells Maintainability Rating Reliability Rating Security Rating

Installation on laravel

You can install the package through Composer.

composer require tahsingokalp/lett

Then publish the config and migration file of the package using the vendor publish command.

php artisan vendor:publish --provider="TahsinGokalp\Lett\LettServiceProvider"

And adjust config file (config/lett.php) with your desired settings.

Note: by default only production environments will report errors. To modify this edit your Let configuration.

Configuration variables

All that is left to do is to define two env configuration variables.

LETT_KEY=
LETT_PROJECT_KEY=

LETT_KEY is your profile key which authorises your account to the API.

LETT_PROJECT_KEY is your project API key which you've received when creating a project.

Install lett-tracker to your host and get the variables.

Reporting unhandled exceptions

You can use lett as a log-channel by adding the following config to the channels section in config/logging.php:

'channels' => [
    // ...
    'lett' => [
        'driver' => 'lett',
    ],
],

After that you can add it to the stack section:

'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'lett'],
    ],
    //...
],

Now all unhandled exceptions will be reported to Lett.

License

The Let package is open source software licensed under the license MIT

Special Thanks

This repo forked from https://github.com/LaraBug/LaraBug - https://github.com/Cannonb4ll

About

Error reporting tool for laravel

License:MIT License


Languages

Language:PHP 100.0%