log4js.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "appenders": [
  3. {
  4. "type": "console"
  5. },
  6. {
  7. "type": "file",
  8. "filename": "${opts:base}/logs/con-log-${opts:serverId}.log",
  9. "pattern": "connector",
  10. "maxLogSize": 1048576,
  11. "layout": {
  12. "type": "basic"
  13. },
  14. "backups": 5,
  15. "category": "con-log"
  16. },
  17. {
  18. "type": "file",
  19. "filename": "${opts:base}/logs/rpc-log-${opts:serverId}.log",
  20. "maxLogSize": 1048576,
  21. "layout": {
  22. "type": "basic"
  23. },
  24. "backups": 5,
  25. "category": "rpc-log"
  26. },
  27. {
  28. "type": "file",
  29. "filename": "${opts:base}/logs/forward-log-${opts:serverId}.log",
  30. "maxLogSize": 1048576,
  31. "layout": {
  32. "type": "basic"
  33. },
  34. "backups": 5,
  35. "category": "forward-log"
  36. },
  37. {
  38. "type": "file",
  39. "filename": "${opts:base}/logs/rpc-debug-${opts:serverId}.log",
  40. "maxLogSize": 1048576,
  41. "layout": {
  42. "type": "basic"
  43. },
  44. "backups": 5,
  45. "category": "rpc-debug"
  46. },
  47. {
  48. "type": "file",
  49. "filename": "${opts:base}/logs/crash.log",
  50. "maxLogSize": 1048576,
  51. "layout": {
  52. "type": "basic"
  53. },
  54. "backups": 5,
  55. "category":"crash-log"
  56. },
  57. {
  58. "type": "file",
  59. "filename": "${opts:base}/logs/admin.log",
  60. "maxLogSize": 1048576,
  61. "layout": {
  62. "type": "basic"
  63. }
  64. ,"backups": 5,
  65. "category":"admin-log"
  66. },
  67. {
  68. "type": "file",
  69. "filename": "${opts:base}/logs/pomelo-${opts:serverId}.log",
  70. "maxLogSize": 1048576,
  71. "layout": {
  72. "type": "basic"
  73. }
  74. ,"backups": 5,
  75. "category":"pomelo"
  76. },
  77. {
  78. "type": "file",
  79. "filename": "${opts:base}/logs/pomelo-admin.log",
  80. "maxLogSize": 1048576,
  81. "layout": {
  82. "type": "basic"
  83. }
  84. ,"backups": 5,
  85. "category":"pomelo-admin"
  86. },
  87. {
  88. "type": "file",
  89. "filename": "${opts:base}/logs/pomelo-rpc.log",
  90. "maxLogSize": 1048576,
  91. "layout": {
  92. "type": "basic"
  93. }
  94. ,"backups": 5,
  95. "category":"pomelo-rpc"
  96. }
  97. ],
  98. "levels": {
  99. "rpc-log" : "ERROR",
  100. "forward-log": "ERROR"
  101. },
  102. "replaceConsole": true,
  103. "lineDebug": false
  104. }