Skip to content

Commit

Permalink
Unlimited log files by setting log_max_files = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbilovd committed May 30, 2016
1 parent 804b8b3 commit 5bfd6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Bootstrap/ConfigureLogging.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function configureDailyHandler(Application $app, Writer $log)
$config = $app->make('config');
$log->useDailyFiles(
$app->storagePath().'/logs/laravel.log',
$config->get('app.log_max_files', 5),
is_null($config->get('app.log_max_files')) ? 5 : $config->get('app.log_max_files'),
$config->get('app.log_level', 'debug')
);
}
Expand Down

0 comments on commit 5bfd6d6

Please sign in to comment.