/log

log - Go level and rotate log

Primary LanguageGoMIT LicenseMIT

Go level and rotate log

level

  • built-in 8 levels
  • change level name
  • add custom level

error

  • logging when an error occurs

rotate

  • by time
  • by file size
  • by file count
  • daily

redirect

  • stdout
  • stderr
I hate writing documentation but RTFSC.
I hate writing test cases but I have tested it. I did my best.