ServiceLog.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. return [
  10. 'serviceLog' => [
  11. 'class' => 'fecshop\components\ServiceLog',
  12. 'log_config' => [
  13. // service log config
  14. 'services' => [
  15. // if enable is false , all services will be close
  16. // 总开关,开启或关闭Service Log,如果关闭了总开关,那么下面的开关开启都无效
  17. 'enable' => false,
  18. // print log info to db.
  19. // 将Service Log写入db的开关,开启后将会写入到 mongodb数据库的表 `fecshop_service_log ` , 前提:需要总开关开启
  20. 'dbprint' => false,
  21. // print log info to front html
  22. // 直接在页面显示Service Log 的开关。前提:需要总开关开启
  23. 'htmlprint' => false,
  24. // print log
  25. // 直接在页面显示Service Log 的开关。前提:需要总开关开启
  26. //
  27. 'htmlprintbyparam' => [
  28. // like :http://fecshop.appfront.fancyecommerce.com?servicelog=xxxxxxxx
  29. // 当这里开启后,如果访问http://fecshop.appfront.fancyecommerce.com 是看不到service log信息的,
  30. // 只有访问 http://fecshop.appfront.fancyecommerce.com?servicelog=xxxxxxxx , 才能看到
  31. 'enable' => false,
  32. 'paramKey' => 'servicelog',
  33. 'paramVal' => 'xxxxxxxx',
  34. ],
  35. ],
  36. ],
  37. ],
  38. ];