normalize-logging

This commit is contained in:
xiaomlove
2021-04-26 20:37:17 +08:00
parent 58c6aa58e8
commit 63a2c71cb6
18 changed files with 225 additions and 109 deletions

View File

@@ -17,7 +17,7 @@ return [
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
'default' => env('LOG_CHANNEL', 'daily'),
/*
|--------------------------------------------------------------------------
@@ -37,6 +37,7 @@ return [
'channels' => [
'stack' => [
'driver' => 'stack',
'tab' => [\App\Logging\NexusFormatter::class],
'channels' => ['daily'],
'ignore_exceptions' => false,
],
@@ -49,8 +50,9 @@ return [
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'path' => env('LOG_FILE', '/tmp/nexus.log'),
'level' => env('LOG_LEVEL', 'debug'),
'tab' => [\App\Logging\NexusFormatter::class],
'days' => 14,
],