log_config.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "filepath": "./etalogs",
  3. "appenders": [
  4. {
  5. "type": "console",
  6. "rotate": true,
  7. "level": "info",
  8. "color": true
  9. },
  10. {
  11. "type": "file",
  12. "filename": "file/error.log",
  13. "maxlines": 1000000,
  14. "maxsize": 268435456,
  15. "daily": true,
  16. "maxdays": 7,
  17. "rotate": true,
  18. "level": "error",
  19. "color": true
  20. },
  21. {
  22. "type": "file",
  23. "filename": "file/info.log",
  24. "maxlines": 1000000,
  25. "maxsize": 268435456,
  26. "daily": true,
  27. "maxdays": 30,
  28. "rotate": true,
  29. "level": "info",
  30. "color": true
  31. },
  32. {
  33. "filter": "apiRequest",
  34. "type": "file",
  35. "filename": "api/api.log",
  36. "maxlines": 1000000,
  37. "maxsize": 268435456,
  38. "daily": true,
  39. "maxdays": 30,
  40. "rotate": true,
  41. "level": "info",
  42. "color": true
  43. },
  44. {
  45. "filter": "coin,orm....*",
  46. "type": "file",
  47. "filename": "db/db.log",
  48. "maxlines": 1000000,
  49. "maxsize": 268435456,
  50. "daily": false,
  51. "maxdays": 30,
  52. "rotate": true,
  53. "level": "info",
  54. "color": true
  55. },
  56. {
  57. "filter": "webhookRequest",
  58. "type": "file",
  59. "filename": "api/webhook.log",
  60. "maxlines": 1000000,
  61. "maxsize": 268435456,
  62. "daily": false,
  63. "maxdays": 30,
  64. "rotate": true,
  65. "level": "info",
  66. "color": true
  67. }
  68. ]
  69. }