Skip to content

Releases: gookit/slog

v0.5.8

15 Mar 03:40
Compare
Choose a tag to compare

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

v0.5.7

23 Oct 02:30
51dce8c
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: fix the gen logfile error on set rotateTime is mintes. close #150 3c47826
  • Fixes the directory for cleaning files (#146) 34d0257

Other

  • build(deps): bump morphy2k/revive-action from 2.5.7 to 2.5.10 (#151) c25a841
  • build(deps): bump github.com/gookit/goutil from 0.6.15 to 0.6.16 (#147) 1da33a3
  • ci: run revive check only on go1.22 fef1611
  • ci: use custom revive config file on CI check 50ace87
  • ci: remove the Revive check on github action 3d2ce76
  • build(deps): bump github.com/gookit/goutil from 0.6.16 to 0.6.17 (#152) 51dce8c

What's Changed

  • Fixes the directory for cleaning files by @ybaldus in #146
  • build(deps): bump morphy2k/revive-action from 2.5.7 to 2.5.10 by @dependabot in #151
  • build(deps): bump github.com/gookit/goutil from 0.6.15 to 0.6.16 by @dependabot in #147
  • build(deps): bump github.com/gookit/goutil from 0.6.16 to 0.6.17 by @dependabot in #152

New Contributors

Full Changelog: v0.5.6...v0.5.7

v0.5.6

02 May 02:40
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix: fix nil panic on use &slog.TextFormatter{} create formatter .see issues #139 6e2c5d4
  • 🐛 fix: fix the rotating file name is error on use rotatefile.EveryDay. see issues #138 86e029f

Update

  • 👔 up: add TextFormatterWith for quickly make a textFormatter be892f7
  • 👔 up: rotatefile - 20% probability trigger clean on write log e492570
  • 👔 up: add new handler option: TimeClock, fix some test error 70031a7
  • 👔 up: handler - syslog handler write log by log level. fix #142 1b25cfd

Other

  • build(deps): bump morphy2k/revive-action from 2.5.6 to 2.5.7 (#136) 1361ac8
  • build(deps): bump softprops/action-gh-release from 1 to 2 (#140) b683bb6
  • ✅ test: add a mock clock and test case for issues #138 ec256be
  • ✅ test: add a test case for issues #121 ff670f2
  • ✅ test: add a test case for issues #137 980aa06

v0.5.5

05 Feb 13:02
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: add new method WithValue, WithExtra for quick create log Record 5047b62

Update

  • 👔 up: update the syslog handler, support more options. see issues #120 4eed300
  • ♻️ up: update the log record release and reuse logic 4ae7f8a
  • 🔥 up: remove the deprecated handler.BufferWrapper 070293e
  • 🔥 up: remove the deprecated SugaredLogger.Configure method c4c63c7
  • 👔 up: add release statement for logger With* method 661c430

Other

  • build(deps): bump WillAbides/setup-go-faster from 1.8.0 to 1.9.0 (#112) 7fb8250
  • build(deps): bump WillAbides/setup-go-faster from 1.9.0 to 1.9.1 (#113) 36d7597
  • build(deps): bump WillAbides/setup-go-faster from 1.9.1 to 1.10.0 (#114) 38de21a
  • build(deps): bump morphy2k/revive-action from 2.5.2 to 2.5.3 (#117) c44c3c3
  • build(deps): bump actions/checkout from 3 to 4 (#118) d214bc2
  • build(deps): bump WillAbides/setup-go-faster from 1.10.0 to 1.10.1 (#116) 9d3e64e
  • build(deps): bump WillAbides/setup-go-faster from 1.10.1 to 1.11.0 (#119) 7efd28a
  • build(deps): bump WillAbides/setup-go-faster from 1.11.0 to 1.12.0 (#122) 5fe2954
  • build(deps): bump morphy2k/revive-action from 2.5.3 to 2.5.4 (#125) bef642d
  • 📝 chore: update deps,README and update GitHub action config f81659d
  • dep: update go deps by mod tidy 3d27d07
  • 📝 doc: update bench test result record and docs 8348571
  • ✅ test: add some new tests case for logger 61216e2
  • build(deps): bump WillAbides/setup-go-faster from 1.12.0 to 1.13.0 (#128) 7752f3e
  • build(deps): bump github.com/gookit/goutil from 0.6.12 to 0.6.14 (#124) c3eb264
  • build(deps): bump morphy2k/revive-action from 2.5.4 to 2.5.5 (#131) 3281c80
  • build(deps): bump morphy2k/revive-action from 2.5.5 to 2.5.6 (#133) 617899e
  • build(deps): bump WillAbides/setup-go-faster from 1.13.0 to 1.14.0 (#134) f10fb3e
  • Use proper error level for Warnf (#135) c79228f
  • build(deps): bump github.com/gookit/goutil from 0.6.14 to 0.6.15 (#132) 58189e6

v0.5.4

28 Jul 07:01
Compare
Choose a tag to compare

Change Log

Fixed

  • 🐛 fix: fix the async clean old log files not working. see issues #111 b8c0984

Update

  • 👔 update: rotatefile - config add new field DebugMode for dev 21d1056
  • 👔 up: handler.Config add new option DebugMode, update some tests and comments 3a86900
  • 👔 up: add MustClose(), Close() for quick close logger and add more unit tests 81af6cd

Other

  • ⬆️ dep: update gookit/color and goutil to latest 289eca6
  • 🔊 chore: update log message for debug ci test error 2865e8a

v0.5.3

12 Jul 16:04
Compare
Choose a tag to compare

Change Log

Refactor

  • 💥 refactor: refactoring the rotatefile cleanup logic, add more unit tests 2a20d47

Feature

  • feat: add capability to customize caller format (#107) 4c4c4c2
  • ✨ feat: update record.Time init logic, support repeat use a Record instance 4321da1
  • ✨ feat: support set default channel name on each logger. issues #108 ccc8922
  • ✨ feat: handler - refactoring some handler create logic, support use max level or levels 3a54534
  • ✨ feat: update some for formatter create and use logic, add more tests 2d2c3a8
  • ✨ feat: update logger daemon flush logic, support stop control a60d020

Update

  • 👔 up: rotatefile - update some for print error output 96eedaf
  • 👔 up: handler - update some logic for handler config and build fabaca0
  • 👔 up: handler - update some handler and add more test cases 669fb97
  • 👔 up: rotatefile - update some logic for cleanup, add more unit tests 37f31dd
  • 👔 up: update rotate writer async clean logic, fix test bugs 3923679

Other

  • 🎨 fmt: fix some code style check error 53f432c
  • ⬆️ dep: upgrade golang/x deps to latest version f735b20
  • 💚 ci: fix ci error on Windows, only test syslog on !Windows 43c24a5
  • ✅ test: update the file daemon clean tests, update README docs 456568f
  • ⬆️ dep: upgrade gookit/goutil and gookit/gst to latest version 23ceab0

New Contributors

Full Changelog: v0.5.2...v0.5.3

v0.5.2

19 Jun 06:29
Compare
Choose a tag to compare

Change Log

Feature

  • ✨ feat: add new option FilePerm for custom perm on create file. issues #102 699ecd8
  • ✨ feat: rotatefile - add new config RotateMode, support create logfile on rotate time. 8c4a9a0
  • ✨ feat: handler - add new config option RotateMode for rotatefile 85015f1

Update

  • 👔 up: update and add more unit tests, upgrade goutil to v0.6.10 693cc04

Other

  • 📝 doc: update readme docs for slog config c98ce6c
  • 📝 doc: update the README docs cbf77c3
  • build(deps): bump morphy2k/revive-action from 2.5.1 to 2.5.2 (#101) dc45762
  • ⬆️ dep: update the gookit/goutil to v0.6.9 and update some README docs c00791b
  • ✅ test: add more unit test cases for logger, record 8468ea4
  • ✅ test: fix a handler unit test error 513ffbb

What's Changed

Full Changelog: v0.5.1...v0.5.2

v0.5.1

15 Apr 02:26
Compare
Choose a tag to compare

Change Log

Update

  • ⚡ perf: performance the log message format process 0c3609b
  • 👔 up: update some code logic and add more unit tests 1fac5f7

Other

  • ✅ test: update benchmark tests and update readme 2eac8d4
  • ✅ test: add new example test case for issues#100 c125af8

Full Changelog: v0.5.0...v0.5.1

v0.5.0

08 Apr 07:15
Compare
Choose a tag to compare

Change Log

Refactor

  • 💥 break: rename some interfaces and structs 38418c7

Feature

  • ✨ feat: handler - config add new field LevelMode, Level 4b4ced1
  • ✨ feat(handler): add more quick config func for build handler. 6ce5dc7

Other

  • ci: fix gh release script run error c70fd53
  • 📝 doc: update readme add more usage examples 400f636
  • dep: update package deps to latest c63dec5
  • build(deps): bump github.com/gookit/goutil from 0.6.2 to 0.6.4 52db86c
  • build(deps): bump github.com/gookit/goutil from 0.5.15 to 0.6.0 in /_example (#94) 665644a
  • build(deps): bump github.com/gookit/goutil from 0.6.4 to 0.6.6 (#93) 3e2bffd
  • build(deps): bump github.com/gookit/goutil from 0.6.6 to 0.6.7 (#95) 9ed8c05
  • build(deps): bump morphy2k/revive-action from 2.4.1 to 2.5.0 (#96) 26e506f
  • build(deps): bump morphy2k/revive-action from 2.5.0 to 2.5.1 (#97) 6d86473
  • build(deps): bump github.com/gookit/color from 1.5.2 to 1.5.3 (#98) fd687f7
  • build(deps): bump github.com/gookit/goutil from 0.6.7 to 0.6.8 (#99) 796522d
  • up: update New(), can with option func cc218e0

What's Changed

Full Changelog: v0.4.0...v0.5.0

v0.4.0

31 Dec 12:51
Compare
Choose a tag to compare

Change Log

Update

  • pref: optimize the log write logic, add default handler 6f145bd
  • up: update the benchmark tests package version to latest, add new tests log c17c0a4
  • 👔 up: update logger caller skip value, fix test error 214491a
  • 👔 up: update log write logic, add more unit tests 4799e4b
  • 👔 up: update logger handler, remove defaultH setting. d671f33

Other

  • style: re-format some code style by gofmt fb36553
  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 5a34789

What's Changed

  • build(deps): bump WillAbides/setup-go-faster from 1.7.0 to 1.8.0 by @dependabot in #82

Full Changelog: v0.3.4...v0.4.0