苏州瑞玛APS项目web后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
  1. # 配置输出 支持三种输出 db log 和console
  2. # db为数据库输出 目前支持输出到mongo 配置为map
  3. db:
  4. mongo1:
  5. dbtype: mongo
  6. host: 127.0.0.1
  7. port: 27017
  8. database: GAAS_MOM
  9. # mongo的collection
  10. Table: LOG
  11. mongo2:
  12. dbtype: mongo
  13. host: 127.0.0.1
  14. port: 27017
  15. database: GAAS_MOM
  16. # mongo的collection
  17. Table: LOG2
  18. # file为输出到文件 配置为map 按天分割
  19. file:
  20. common:
  21. # 文件location
  22. filename: ./log/common.log
  23. # 支持文件的最大个数
  24. MaxAge: 30
  25. plan:
  26. # 文件location
  27. filename: ./log/plan/plan.log
  28. # 支持文件的最大个数
  29. MaxAge: 30
  30. Default : "<style>.hr{width:100%;}table{width:100%;border:1;background:#FF9966;}table td{word-break: break-all;background-color:#fff;}.t_title{width:15%;}.time-val{width:30%;}.val{width:40%;}.info{width:75%;}</style>"
  31. user:
  32. # 文件location
  33. filename: ./log/user.log
  34. # 支持文件的最大个数
  35. MaxAge: 7
  36. # console 为输出到控制台
  37. console:
  38. enable: true # bool 是否输出到控制台
  39. # module配置输出源 配置为map
  40. config:
  41. # root为根配置 默认配置 module未配置则使用root配置
  42. root:
  43. # 此处的file、db、console名称可以随意起 见文知意即可
  44. file:
  45. # drivertype 为驱动类型 log-文件 db-数据库 console-控制台
  46. drivertype: log
  47. level: debug
  48. # drivername 需要和output的map 键值相同
  49. drivername: common
  50. db:
  51. drivertype: db
  52. level: info
  53. drivername: mongo1
  54. # console:
  55. # drivertype: console
  56. # level: debug
  57. # drivername: console
  58. plan:
  59. file:
  60. # drivertype 为驱动类型 log-文件 db-数据库 console-控制台
  61. drivertype: log
  62. level: debug
  63. # drivername 需要和output的map 键值相同
  64. drivername: plan
  65. # db:
  66. # drivertype: db
  67. # level: debug
  68. # drivername: mongo2