log.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // +----------------------------------------------------------------------
  12. // | 日志设置
  13. // +----------------------------------------------------------------------
  14. return [
  15. // 日志记录方式,内置 file socket 支持扩展
  16. 'type' => 'File',
  17. // 日志保存目录
  18. 'path' => '',
  19. // 日志记录级别
  20. 'level' => [],
  21. // 单文件日志写入
  22. 'single' => false,
  23. // 独立日志级别
  24. 'apart_level' => [],
  25. // 最大日志文件数量
  26. 'max_files' => 0,
  27. // 是否关闭日志写入
  28. 'close' => false,
  29. ];