Download the PHP package cerealkiller/error-logger-laravel-sdk without Composer
On this page you can find all versions of the php package cerealkiller/error-logger-laravel-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cerealkiller/error-logger-laravel-sdk
More information about cerealkiller/error-logger-laravel-sdk
Files in cerealkiller/error-logger-laravel-sdk
Package error-logger-laravel-sdk
Short Description Laravel SDK for ErrorLogger
License MIT
Informations about the package error-logger-laravel-sdk
ErrorLogger
Laravel 7.x package for logging errors to error-logger.netlify.app
Installation
You can install the package through Composer.
Then publish the config and migration file of the package using artisan.
And adjust config file (config/errorlogger.php
) with your desired settings.
Note: by default only local environments will report errors. To modify this edit your errorlogger configuration.
Configuration variables
All that is left to do is to define env configuration variable in .env
ERRORLOGGER_API_KEY
is your profile key which authorises your account to the API.
Get API_KEY at error-logger.netlify.app
Setup
Next is to add the driver to the logging.php file:
After that you have configured the ErrorLogger channel you can add it to the stack section:
Frontend
To catch frontend errors, add this include blade directive on top of the file where you want to log errors.
Testing
Now test to see if it works, you can do this in two ways.
Option 1:
- Run this in your terminal:
Option 2:
- Run this code in your application to see if the exception is received by ErrorLogger.
And you are good to go! Happy coding :)
Versioning
ErrorLogger-Laravel-SDK is versioned under the Semantic Versioning guidelines as much as possible.
Releases will be numbered with the following format:
And constructed with the following guidelines:
-
Breaking backward compatibility bumps the major and resets the minor and patch.
-
New additions without breaking backward compatibility bumps the minor and resets the patch.
-
Bug fixes and misc changes bumps the patch.
- Minor versions are not maintained individually, and you're encouraged to upgrade through to the next minor version.
Major versions are maintained individually through separate branches.
License
The ErrorLogger-Laravel-SDK package is open source software licensed under the Apache License 2.0
All versions of error-logger-laravel-sdk with dependencies
orchestra/testbench Version ^5.2
guzzlehttp/guzzle Version ^6.5
ext-json Version *