log4js.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "appenders": [
  3. {
  4. "type": "file",
  5. "filename": "./test/logs/node-log-${opts:serverId}.log",
  6. "fileSize": 1048576,
  7. "layout": {
  8. "type": "basic"
  9. },
  10. "backups": 5
  11. },
  12. {
  13. "type": "console"
  14. },
  15. {
  16. "type": "file",
  17. "filename": "./test/logs/con-log-${opts:serverId}.log",
  18. "pattern": "connector",
  19. "maxLogSize": 1048576,
  20. "layout": {
  21. "type": "basic"
  22. },
  23. "backups": 5,
  24. "category":"con-log"
  25. },
  26. {
  27. "type": "file",
  28. "filename": "./test/logs/rpc-log-${opts:serverId}.log",
  29. "fileSize": 1048576,
  30. "layout": {
  31. "type": "basic"
  32. },
  33. "backups": 5,
  34. "category":"rpc-log"
  35. },
  36. {
  37. "type": "file",
  38. "filename": "./test/logs/forward-log-${opts:serverId}.log",
  39. "fileSize": 1048576,
  40. "layout": {
  41. "type": "basic"
  42. },
  43. "backups": 5,
  44. "category":"forward-log"
  45. },
  46. {
  47. "type": "file",
  48. "filename": "./test/logs/crash.log",
  49. "fileSize": 1048576,
  50. "layout": {
  51. "type": "basic"
  52. },
  53. "backups": 5,
  54. "category":"crash-log"
  55. },
  56. {
  57. "type": "file",
  58. "filename": "./test/logs/transaction.log",
  59. "fileSize": 1048576,
  60. "layout": {
  61. "type": "basic"
  62. },
  63. "backups": 5,
  64. "category":"transaction-log"
  65. },
  66. {
  67. "type": "file",
  68. "filename": "./test/logs/transaction-error.log",
  69. "fileSize": 1048576,
  70. "layout": {
  71. "type": "basic"
  72. },
  73. "backups": 5,
  74. "category":"transaction-error-log"
  75. }
  76. ],
  77. "levels": {
  78. "rpc-log" : "ERROR",
  79. "forward-log": "ERROR"
  80. },
  81. "replaceConsole": true
  82. }