Browse Source

update log file name to include sapi name.

Taylor Otwell 11 years ago
parent
commit
6674b34a64
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/start/global.php

+ 3 - 1
app/start/global.php

@@ -30,7 +30,9 @@ ClassLoader::addDirectories(array(
 |
 */
 
-Log::useDailyFiles(__DIR__.'/../storage/logs/log.txt');
+$logFile = 'log-'.php_sapi_name().'.txt';
+
+Log::useDailyFiles(__DIR__.'/../storage/logs/'.$logFile);
 
 /*
 |--------------------------------------------------------------------------