GAAS GFrame项目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.

69 lines
1.6 KiB

  1. # 配置输出 支持三种输出 db file 和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. user:
  26. # 文件location
  27. filename: ./log/user.log
  28. # 支持文件的最大个数
  29. MaxAge: 7
  30. # console 为输出到控制台
  31. console:
  32. enable: true # bool 是否输出到控制台
  33. # module配置输出源 配置为map
  34. config:
  35. # root为根配置 默认配置 module未配置则使用root配置
  36. root:
  37. # 此处的file、db、console名称可以随意起 见文知意即可
  38. file:
  39. # drivertype 为驱动类型 file-文件 db-数据库 console-控制台
  40. drivertype: file
  41. level: debug
  42. # drivername 需要和output的map 键值相同
  43. drivername: common
  44. # db:
  45. # drivertype: db
  46. # level: debug
  47. # drivername: mongo1
  48. console:
  49. drivertype: console
  50. level: debug
  51. drivername: console
  52. user:
  53. file:
  54. # drivertype 为驱动类型 file-文件 db-数据库 console-控制台
  55. drivertype: file
  56. level: info
  57. # drivername 需要和output的map 键值相同
  58. drivername: user
  59. db:
  60. drivertype: db
  61. level: debug
  62. drivername: mongo2