laravel5.2.40生产环境的日志使用按天存放,只有最近五天产生的日志,这对于我来说太说, 通过查看源代码发现在config/app.php里面添加log_max_files索引配置可以修改文件数量

$config = App::make('config');

$maxFiles = $config->get('app.log_max_files');
dd($config, $maxFiles);
\Log::info('1');
die;

关键代码截图

laravel 默认日志文件个数

 

转载于:https://www.cnblogs.com/zzx11235/articles/5992489.html

相关文章:

  • 2022-12-23
  • 2021-03-29
  • 2021-09-26
  • 2021-07-30
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-19
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-04-10
相关资源
相似解决方案