'Is there any way to add prefix in laravel log channel drivers?
Normally, I can change laravel.log file name(like prefix) with following code.

That $customerKeyName will change dynamically at runtime. Instead of doing that, is there any way to modify single and daily channel drivers to add prefix for laravel.log file.
If I can add prefix in both single and daily channel drivers, when I add new channel using single or daily driver like following, I don't need to change file name for that path via config.
'customlog' => [
'driver' => 'single',
'path' => storage_path('logs/cron_log.log'),
'level' => 'info',
],
I'm using laravel 7.x. I found some solutions for laravel 4,5 but it doesn't work with laravel 7.x
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
