use IlluminateSupportFacadesLog;
Log::build([
'driver' => 'single',
'path' => storage_path('logs/custom.log'),
])->info('Something happened!');
configlogging.php
// custom driver
'log_demo'=>
[
'driver' => 'custom',
'via'=>ApploggingCreateCustomLogger::class,
],