Releases: gookit/slog
Releases · gookit/slog
Release list
v0.7.1
v0.7.0
Change Log
Fixed
- fix(formatter): return independent byte copy to fix cross-logger data race 876e79f
- fix(logger): copy GlobalFields into record to avoid shared-map pollution 8a972ef
- fix(rotatefile): fix async-clean and daemon data races ddc61a0
- fix(bufwrite,logger): io.Writer contract + LastErr/closed data races bc70a07
- fix(formatter): render empty caller instead of literal when caller is nil b6f65f7
- fix(rotatefile,logger): close remaining cleaner/daemon data races c63645b
Feature
- feat(logger): Added a GlobalFields configuration option to set global fields for all logging 7de94db
Other
- build(deps): bump actions/checkout from 5 to 6 (#169) 99dd0c6
- build(deps): bump github.com/gookit/goutil from 0.7.1 to 0.7.2 (#168) 646c80d
- build(deps): bump github.com/gookit/goutil from 0.7.2 to 0.7.3 (#170) bfac459
- build(deps): bump github.com/gookit/goutil from 0.7.3 to 0.7.4 (#171) cbe98f1
- chore: Update dependencies and CI configuration f12a8b6
- build(deps): bump softprops/action-gh-release from 2 to 3 (#172) 5ad0e6d
- build(deps): bump github.com/gookit/color from 1.6.0 to 1.6.1 (#173) 9c3d562
- build(deps): bump github.com/gookit/goutil from 0.7.4 to 0.7.5 (#174) f4e1ab8
- build(deps): bump actions/checkout from 6 to 7 (#176) 90f9abc
- ci: update and add new ci actions 63db494
- docs: add slog code analysis report 6ae1aad
- perf(logger): add fast level gate to skip disabled-level logs ca18bb9
- perf(util): handle M type directly in EncodeToString d232df6
- docs: record deeper pre-existing races and pending-decision items a48d233
- docs: finalize analysis report (P1-5 not done, deep races resolved) 6756fda
- chore: add DataValue/LogField scaffolding and logcleaner stub af9350e
- docs(record): note Record is not concurrency-safe; fix racy test 72dc7d5
- test(rotatefile): set BackupNum before Create to avoid config-mutation race 589b319
- docs: finalize item-3 evaluation (P1-6/P2-8 not done, test races fixed) bc5d0f3
- ci: run race detector on a single stable+ubuntu job fa56bed
- build(deps): bump github.com/gookit/goutil from 0.7.5 to 0.7.6 (#175) d38d499
v0.6.0
Change Log
Feature
- ✨ feat: can custom the output level name length and custom color render 60ea1a0
- ✨ feat: rotatefile - RotateTime, RotateMode add implements the json Unmarshaler, Marshaler f84c3cc
- ✨ feat: Level, LevelMode add implements the json Unmarshaler, Marshaler deb5cb7
- ✨ feat: add sub-logger create on logger. can be keep fields/data/ctx for multi records 8d885a8
- ✨ feat: logger add xxCtx method for quick with context 20af58d
- ✨ feat: add SubLogger for keep some ctx data with all records 0b7c8d4
- ✨ feat: std logger add xxCtx method for quick with context 648aa7e
- ✨ feat: add new process func: CtxKeysProcessor, can collect ctx values to data, extra or field 07fac20
Update
- 👔 up: update some for format log record logic d3fdbfb
- 👔 up: update some code style and test cases d34ecdf
Other
- 📝 doc: update some docs and code comments f926052
- ✅ test: fix some unit testing cases fail 049e42c
- build(deps): bump github.com/gookit/gsr from 0.1.0 to 0.1.1 (#164) 90c4be8
- ⬆️ dep: upgrade gookit/goutil v0.6.18 to v0.7.0, update some pkg import path 8d2b71b
- 👔 doc: update some comments and tests f857def
- ⬆️ dep: upgrade actions and deps to latest version 0d3b3f0
- ✅ test: update some util and test cases 8ece0f2
- ✅ test: fix getCaller return error a3c0fd3
Full Changelog: v0.5.8...v0.6.0
v0.5.8
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
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
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
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
v0.5.3
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
- @deryrahman made their first contribution in #107
Full Changelog: v0.5.2...v0.5.3
v0.5.2
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