conf.json 676 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "writers" : {
  3. "filetolog":{
  4. "writer":"file",
  5. "opts":{
  6. "path":"access.log"
  7. }
  8. },
  9. "errorfile": {
  10. "writer":"file",
  11. "opts": {
  12. "path":"error.log"
  13. }
  14. },
  15. "console1": {
  16. "writer":"console",
  17. "opts":{
  18. "format":{
  19. "ERROR":"-------------- ERR %m -----------------"
  20. }
  21. }
  22. },
  23. "console": {
  24. "writer":"console"
  25. }
  26. },
  27. "loggers": {
  28. "main":["ERROR","VERBOSE","INFO","WARN"]
  29. },
  30. "adapters" : [
  31. {
  32. "levels": ["INFO","VERBOSE","WARN","ERROR"],
  33. "writers": ["filetolog","console"],
  34. "loggers": {
  35. "Hello": ["INFO"],
  36. "main": ["ERROR"]
  37. }
  38. },
  39. {
  40. "levels":["ERROR","WARN"],
  41. "writers": ["errorfile"]
  42. }
  43. ]
  44. }