Laravel package for logging errors to Lett-Tracker
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.
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.
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.
The Let package is open source software licensed under the license MIT
This repo forked from https://github.com/LaraBug/LaraBug - https://github.com/Cannonb4ll