change swoole log path

This commit is contained in:
xiaomlove
2022-04-06 22:48:05 +08:00
parent 6ac7194d43
commit f2b9268a1f
3 changed files with 11 additions and 3 deletions
+3 -2
View File
@@ -43,7 +43,8 @@ return [
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'tap' => [\App\Logging\NexusFormatter::class],
'path' => env('LOG_FILE', '/tmp/nexus.log'),
'level' => env('LOG_LEVEL', 'debug'),
],
@@ -99,7 +100,7 @@ return [
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
'path' => env('LOG_FILE', '/tmp/nexus.log'),
],
],
+7
View File
@@ -218,4 +218,11 @@ return [
'max_execution_time' => 30,
'swoole' => [
'options' => [
'log_file' => env('LOG_FILE', '/tmp/nexus.log'),
'package_max_length' => 10 * 1024 * 1024,
],
],
];