zdwsi.frontend.config.default.yaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # config for log
  2. log:
  3. # 'true' for enable access log, 'false' for disable access log
  4. access_log_enable: true,
  5. # config for log rolling
  6. rolling_log_config:
  7. # config for error log rolling
  8. error_log:
  9. # absolute path to log (log rotating will append infix into filename)
  10. file: "/data/logs/frontend.err.log"
  11. # max size per log file (MegaBytes)
  12. max_size: 16
  13. # max days for rotating
  14. max_age: 30
  15. # max backups for rotating remain
  16. max_backups: 50
  17. # 'true' for using local time for rotating
  18. use_local_time: true
  19. # 'true' for compress rotating history into zip files
  20. compress_history: true
  21. # config for access log rolling
  22. access_log:
  23. # absolute path to log (log rotating will append infix into filename)
  24. file: "/data/logs/frontend.access.log"
  25. # max size per log file (MegaBytes)
  26. max_size: 16
  27. # max days for rotating
  28. max_age: 30
  29. # max backups for rotating remain
  30. max_backups: 50
  31. # 'true' for using local time for rotating
  32. use_local_time: true
  33. # 'true' for compress rotating history into zip files
  34. compress_history: true
  35. # detail config for access log
  36. error_logger_config:
  37. # the log emitting level, the message which level below this will be emitted
  38. # optional value: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'PANIC', 'FATAL'
  39. # all level option below should be one of these values
  40. output_level: "INFO"
  41. # format string for log. this formation using YAGTF.
  42. # Reference: http://git.swzry.com/zry/YAGTF
  43. # Expanded Tags: <level>, <unit>, <msg>
  44. log_format: "[!<y>-<mon>-<d> <h24>:<min>:<s>.<us> <tz> <tzA>] <lt><level><gt>{<unit>} <msg><br>"
  45. # detail config for access log
  46. access_logger_config:
  47. # the log emitting level, the message which level below this will be emitted
  48. # optional value: 'DEBUG', 'INFO', 'WARN', 'ERROR', 'PANIC', 'FATAL'
  49. # all level option below should be one of these values
  50. output_level: "INFO"
  51. # level for HTTP 200
  52. success_level: "INFO"
  53. # level for HTTP 404
  54. not_found_level: "WARN"
  55. # level for HTTP 403
  56. forbidden_level: "WARN"
  57. # level for HTTP 502/503
  58. gateway_error_level: "ERROR"
  59. # level for HTTP 500
  60. internal_error_level: "ERROR"
  61. # level for logging before response
  62. prelog_level: "DEBUG"
  63. # format string for log. this formation using YAGTF.
  64. # Reference: http://git.swzry.com/zry/YAGTF
  65. # Expanded Tags: <level>, <url>, <status>
  66. # Example: "{<q>time<q>: <q>!<y>-<mon>-<d> <h24>:<min>:<s>.<us> <tz> <tzA><q>, <q>level<q>: <q><level><q>, <q>status<q>: <status>, <q>url<q>: <q><url><q>}<br>"
  67. # Output example for this example: {"time": "2019-09-19 11:45:14.191981000 +0800 CST", "level": "INFO", "status": 200, "url": "/"}
  68. log_format: "{<q>time<q>: <q>!<y>-<mon>-<d> <h24>:<min>:<s>.<us> <tz> <tzA><q>, <q>level<q>: <q><level><q>, <q>status<q>: <status>, <q>url<q>: <q><url><q>}<br>"