Downloads
Stars
Version
The logs
package to send logs to console with extra info and catch query sql .
Require the litermi/logs
package in your composer.json
and update your dependencies:
composer require litermi/logs
set provider
'providers' => [
// ...
Litermi\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="Litermi\Logs\Providers\ServiceProvider"
Note: this is necessary to you can change default config
add provider in config/app.php
'providers' => [
Litermi\Logs\Providers\QueryLogProvider::class,
]
$extraValues['test'] = 1;
LogConsoleFacade::full()->tracker()->log('your message', $extraValues);
Released under the MIT License, see LICENSE.