cirelramos / logs
package to log routines and sql query
1.0.13
2023-01-03 19:36 UTC
Requires
- php: ^7.4|^8.0
- illuminate/config: ^7.20|^8.19|^9.0
- illuminate/contracts: ^7.20|^8.19|^9.0
- illuminate/database: ^7.20|^8.19|^9.0
- illuminate/http: ^7.20|^8.19|^9.0
README
About
The logs
package to send logs to console with extra info and catch query sql .
Tutorial how create composer package
Installation
Require the cirelramos/logs
package in your composer.json
and update your dependencies:
composer require cirelramos/logs
Configuration
set provider
'providers' => [ // ... Cirelramos\Logs\Providers\ServiceProvider::class, ],
The defaults are set in config/logs.php
. Publish the config to copy the file to your own config:
php artisan vendor:publish --provider="Cirelramos\Logs\Providers\ServiceProvider"
Note: this is necessary to you can change default config
Usage
add provider in config/app.php
'providers' => [ Cirelramos\Logs\Providers\QueryLogProvider::class, ]
$extraValues['test'] = 1; LogConsoleFacade::full()->tracker()->log('your message', $extraValues);
License
Released under the MIT License, see LICENSE.