From 5ac4619378e4c7cfc84c15019c17914c4908d307 Mon Sep 17 00:00:00 2001 From: Martien Dermawan Tanama Date: Mon, 17 Feb 2020 16:44:56 +0700 Subject: [PATCH] fix logging path for different user permission --- config/logging.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/logging.php b/config/logging.php index 56fca851d..88dd1f9a8 100644 --- a/config/logging.php +++ b/config/logging.php @@ -39,19 +39,19 @@ 'single' => [ 'driver' => 'single', - 'path' => storage_path('logs/laravel.log'), + 'path' => storage_path('logs/' . php_sapi_name() . '-laravel.log'), 'level' => 'debug', ], 'testing' => [ 'driver' => 'single', - 'path' => storage_path('logs/testing.log'), + 'path' => storage_path('logs/' . php_sapi_name() . '-testing.log'), 'level' => 'debug', ], 'daily' => [ 'driver' => 'daily', - 'path' => storage_path('logs/laravel.log'), + 'path' => storage_path('logs/' . php_sapi_name() . '-laravel.log'), 'level' => 'debug', 'days' => 7, ],