Splice the logger to use the cron stack for the console

This commit is contained in:
Nabeel Shahzad
2018-03-17 18:05:51 -05:00
parent 67ef6872af
commit 4b7cd6ce6e
5 changed files with 38 additions and 14 deletions

View File

@@ -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'),