Skip to content

Commit 6674b34

Browse files
committed
update log file name to include sapi name.
1 parent 4355a33 commit 6674b34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/start/global.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
|
3131
*/
3232

33-
Log::useDailyFiles(__DIR__.'/../storage/logs/log.txt');
33+
$logFile = 'log-'.php_sapi_name().'.txt';
34+
35+
Log::useDailyFiles(__DIR__.'/../storage/logs/'.$logFile);
3436

3537
/*
3638
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)