Splice the logger to use the cron stack for the console
This commit is contained in:
@@ -33,9 +33,10 @@ return [
|
||||
# PHP_SAPI === 'cli' ? 'console' : 'daily',
|
||||
],
|
||||
],
|
||||
'console' => [
|
||||
'cron' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => [
|
||||
'cron_rotating',
|
||||
'stdout',
|
||||
],
|
||||
],
|
||||
@@ -50,6 +51,12 @@ return [
|
||||
'level' => 'debug',
|
||||
'days' => 3,
|
||||
],
|
||||
'cron_rotating' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/cron.log'),
|
||||
'level' => 'debug',
|
||||
'days' => 3,
|
||||
],
|
||||
'slack' => [
|
||||
'driver' => 'slack',
|
||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||
|
||||
Reference in New Issue
Block a user