Skip to content

v0.5.8

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Mar 03:40
· 5 commits to master since this release

Change Log

Fixed

  • 🐛 fix: log file path parse maybe error on Windows 9e6939b
  • fix: Use CallerFlagMode type alias instead of uint8 (#155) 35d7f62
  • 🐛 fix: not match old files like error.log rename to error.20250423_02.log 3d44bd2
  • 🐛 fix: fix set BackupNum=0, will remove all old files. see issues #159 183fb6a
  • 🐛 rotatefile: Fixed issues such as rotating files in a very short time, resulting in conflicts, content overwrites, etc. e8e8d6f

Feature

  • ✨ feat: enhance logging configuration functions and add tests ce6b682
  • feat: add func Log on pacakge toplevel 581d3ba

Update

  • ✨ up: handler - add WithRotateTimeString function and corresponding tests 07105c6
  • ✨ up: rotatefile - refactoring the Clean method, add more tests for clean and compress 5caffda
  • ✨ debug: add debug mode env var and add more dev debug log for rotatefile ee1d584
  • ✨ rotatefile: update async clean init logic, deny repeat init goroutine b5fb6bb
  • ✨ rotatefile: decrease lock range on write and rotate file dd54cc8
  • ✨ rotatefile: Clean - do not process recent changes to avoid conflicts a72c6d1
  • ✨ rotatefile: refactoring the rotate file name build logic, file ext always at end afd01cc

Other

  • build(deps): bump github.com/gookit/goutil from 0.6.17 to 0.6.18 (#153) 3fd68fc
  • build(deps): bump github.com/golang/glog from 1.1.1 to 1.2.4 in /_example (#157) 1d40bcc
  • ✅ test: add some internal test func for build tests 5b64610
  • ⬆️ dep: update some deps to latest version efd6a67
  • ci: Update go.yml add go mod tidy 69d2522
  • up: down dep version to support go<1.23 6ee1764
  • use os.ReadFile instead of the deprecated ioutil.ReadFile func (#158) 47afa6b
  • ✅ test: add more unit test case and update some comments ed5a8dd

What's Changed

  • build(deps): bump github.com/gookit/goutil from 0.6.17 to 0.6.18 by @dependabot in #153
  • fix: Use CallerFlagMode type alias instead of uint8 by @ShyunnY in #155
  • build(deps): bump github.com/golang/glog from 1.1.1 to 1.2.4 in /_example by @dependabot in #157
  • use os.ReadFile instead of the deprecated ioutil.ReadFile func by @knbr13 in #158

New Contributors

Full Changelog: v0.5.7...v0.5.8