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

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

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,
],
],
];

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.0');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-05');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-04-06');
defined('IN_TRACKER') || define('IN_TRACKER', true);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");