composer require aagjalpankaj/lalo
php artisan vendor:publish --provider="Aagjalpankaj\Lalo\ServiceProvider"
Add tap
option to any monolog logging channel in logging.php
as below:
'single' => [
'driver' => 'single',
'tap' => [Aagjalpankaj\Lalo\Logger::class],
// other existing configuration...
],
Use the logging channel in .env
:
LOG_CHANNEL=single