log.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. debug {
  2. level = "debug"
  3. formatter.name = "text"
  4. formatter.options {
  5. force-colors = true
  6. disable-colors = false
  7. disable-timestamp = false
  8. full-timestamp = false
  9. timestamp-format = "2006-01-02 15:04:05"
  10. disable-sorting = false
  11. }
  12. }
  13. release {
  14. level = "info"
  15. out.name = "rotatelogs"
  16. out.options {
  17. path = ./log/%Y%m%d.log
  18. #clock=
  19. #location=
  20. #link-name= logs/release/current.log
  21. #rotation-time= #default 24hour
  22. #max-age= #default 24hour * 7
  23. }
  24. formatter.name = "json"
  25. formatter.options {
  26. force-colors = false
  27. disable-colors = false
  28. disable-timestamp = false
  29. full-timestamp = false
  30. timestamp-format = "2006-01-02 15:04:05"
  31. disable-sorting = false
  32. }
  33. }