logger.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [global]
  2. log_dir = "./data/log/"
  3. debug_log = true
  4. # The format of time display. e.g. "2006-01-02 15:04:05"
  5. # It is a strange way to express the format, but it is NOT MY FAULT.
  6. # It is just the STRANGE feature of GoLang.
  7. # See also https://golang.org/pkg/time/#Time.Format
  8. time_format = "2006-01-02 15:04:05.999999999 -0700 MST"
  9. # [system] For system log
  10. # [mclauncher.stdout] For minecraft server stdout log
  11. # [mclauncher.stderr] For minecraft server stderr log
  12. # [ssh] For ssh server log
  13. [system]
  14. # Filename is the file to write logs to. Backup log files will be retained
  15. # in the same directory.
  16. Filename = "System.log"
  17. #MaxSize is the maximum size in megabytes of the log file before it gets
  18. # rotated.
  19. MaxSize = 20
  20. # MaxAge is the maximum number of days to retain old log files based on the
  21. # timestamp encoded in their filename. Note that a day is defined as 24
  22. # hours and may not exactly correspond to calendar days due to daylight
  23. # savings, leap seconds, etc. The default is not to remove old log files
  24. # based on age.
  25. MaxAge = 365
  26. # MaxBackups is the maximum number of old log files to retain. The default
  27. # is to retain all old log files (though MaxAge may still cause them to get
  28. # deleted.)
  29. MaxBackups = 300
  30. # LocalTime determines if the time used for formatting the timestamps in
  31. # backup files is the computer's local time. The default is to use UTC
  32. # time.
  33. LocalTime = true
  34. # Compress determines if the rotated log files should be compressed
  35. # using gzip.
  36. Compress = true
  37. [mclauncher.stdout]
  38. Filename = "MCLauncherOut.log"
  39. MaxSize = 20
  40. MaxAge = 365
  41. MaxBackups = 300
  42. LocalTime = true
  43. Compress = true
  44. [mclauncher.stderr]
  45. Filename = "MCLauncherErr.log"
  46. MaxSize = 20
  47. MaxAge = 365
  48. MaxBackups = 300
  49. LocalTime = true
  50. Compress = true
  51. [ssh]
  52. Filename = "SSH.log"
  53. MaxSize = 20
  54. MaxAge = 365
  55. MaxBackups = 300
  56. LocalTime = true
  57. Compress = true