Complete the code to set the default log channel in Laravel's config.
'default' => env('LOG_CHANNEL', '[1]'),
The default log channel is 'stack' which combines multiple channels like single and daily.
Complete the code to configure the daily log channel's maximum files.
'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => [1], ],
Laravel's default daily log channel keeps logs for 7 days before deleting old files.
Fix the error in the logging config to correctly use the 'stack' channel.
'stack' => [ 'driver' => '[1]', 'channels' => ['single', 'daily'], ],
The 'stack' channel must have 'driver' set to 'stack' to combine multiple channels.
Fill both blanks to configure the syslog channel with the correct driver and level.
'syslog' => [ 'driver' => '[1]', 'level' => '[2]', ],
The syslog channel uses 'syslog' as driver and 'debug' as the default level.
Fill all three blanks to create a custom log channel with daily driver, path, and warning level.
'custom' => [ 'driver' => '[1]', 'path' => storage_path('[2]'), 'level' => '[3]', ],
This custom channel uses the daily driver, writes to logs/custom.log, and logs warnings and above.