Download the PHP package manadinho/lucent without Composer
On this page you can find all versions of the php package manadinho/lucent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download manadinho/lucent
More information about manadinho/lucent
Files in manadinho/lucent
Package lucent
Short Description Package to track exception for production environment
License MIT
Informations about the package lucent
Lucent-Package
Introduction
The lucent-package
is an essential component that connects your applications with the Lucent Web App for seamless error logging. It is crafted to be integrated into the very applications you wish to monitor for errors.
Important: Before incorporating the lucent-package
into your app, ensure that you have the Lucent Web App configured and ready to go. If you haven't set up the Lucent Project yet, please follow the link below to get started.
Getting Started with Lucent
To establish a robust error tracking system, your first step is to set up the Lucent Project. Detailed instructions and necessary resources can be found at the following link:
Once the Lucent Project is in place, you can proceed to integrate the lucent-package
into your application to begin error logging.
Installation
Install Lucent Package
Publish Configurations
Configuration
After creating a new project in your Lucent Project, you will obtain a LUCENT_KEY
. Place this key along with the URL of your Lucent Project into the .env
file of the Laravel project you wish to track. Your .env
file should now include the following entries:
Navigate to the app/Exceptions/Handler.php
file in your Laravel project and import the Lucent Facade at the beginning of the file:
Then, within the register method of your Handler.php file, enhance the reportable method by adding a call to Lucent::register($e). This ensures that any thrown exceptions are captured and logged by the Lucent Web App. Here's the complete method for clarity:
Config Options
Modify the settings of the package by editing the config/lucent.php
file. Here are the available configuration options:
This option allows you to choose whether to log the request details associated with the error.
Enable this to log application-specific details, such as PHP version, Laravel version, environment, and locale.
You can set it to true if you want to log the logged in user details.
Adjust this setting to define the number of lines from the file you wish to log.