PackageTrack

Go modules · #2379

github.com/gookit/slog

v0.7.1gookit/slog

Release timeline

176 releases since 2020
202120222023202420252026

Releases

  1. v0.7.2-0.20260717142642-51310d70420b17 Jul 2026pre-release

    Nothing published for this version

  2. v0.7.2-0.20260626053234-37750648a45226 Jun 2026pre-release

    Nothing published for this version

  3. v0.7.121 Jun 2026
    Release notes

    Change Log

    Refactor

    • refactor: move rotatefile/bufwrite out to github.com/gookit/rotatefile 040241a

    Update

    • up: update dep to latest, rm not used files 49a685b

    Other

    • docs(readme): add comparison with standard log/slog 2976f32
    • docs(example): show rotatefile with the standard log/slog 6ab204c
    • build: use published github.com/gookit/rotatefile v0.1.0 4955a19
    Open source →
  4. v0.7.020 Jun 2026
    Release notes

    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
    Open source →
  5. v0.6.029 Aug 2025
    Release notes

    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

    Open source →
  6. v0.5.9-0.20250707113348-f857defd050d7 Jul 2025pre-release

    Nothing published for this version

  7. v0.5.9-0.20250501012354-90c4be86a3061 May 2025pre-release

    Nothing published for this version

  8. v0.5.9-0.20250425084759-049e42cecdf925 Apr 2025pre-release

    Nothing published for this version

  9. v0.5.9-0.20250425020022-f92605221bc625 Apr 2025pre-release

    Nothing published for this version

  10. v0.5.814 Mar 2025
    Release notes

    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

    • @ShyunnY made their first contribution in #155
    • @knbr13 made their first contribution in #158

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

    Open source →
  11. v0.5.8-0.20250314040349-07105c60483c14 Mar 2025pre-release

    Nothing published for this version

  12. v0.5.8-0.20250314040259-ce6b6828b34d14 Mar 2025pre-release

    Nothing published for this version

  13. v0.5.8-0.20250310020911-6ee176460ddc10 Mar 2025pre-release

    Nothing published for this version

  14. v0.5.8-0.20250309053159-efd6a67b7afe9 Mar 2025pre-release

    Nothing published for this version

  15. v0.5.8-0.20250204072324-1d40bcc78e1b4 Feb 2025pre-release

    Nothing published for this version

  16. v0.5.8-0.20241218050741-35d7f62fbce518 Dec 2024pre-release

    Nothing published for this version

  17. v0.5.8-0.20241210015255-3fd68fc0c57510 Dec 2024pre-release

    Nothing published for this version

  18. v0.5.8-0.20241107072611-9e6939b117437 Nov 2024pre-release

    Nothing published for this version

  19. v0.5.8-0.20241023030551-581d3ba8955f23 Oct 2024pre-release

    Nothing published for this version

  20. v0.5.723 Oct 2024
    Release notes

    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

    Open source →
  21. v0.5.7-0.20240914112044-50ace8760fc714 Sept 2024pre-release

    Nothing published for this version

  22. v0.5.7-0.20240625033413-34d0257e7f2925 Jun 2024pre-release

    Nothing published for this version

  23. v0.5.62 May 2024
    Release notes

    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
    Open source →
  24. v0.5.6-0.20240421030820-ff670f2a0d0321 Apr 2024pre-release

    Nothing published for this version

  25. v0.5.6-0.20240407052208-1b25cfd3bd617 Apr 2024pre-release

    Nothing published for this version

  26. v0.5.6-0.20240326090337-70031a7ded4c26 Mar 2024pre-release

    Nothing published for this version

  27. v0.5.6-0.20240324155049-e4925708f04924 Mar 2024pre-release

    Nothing published for this version

  28. v0.5.6-0.20240312032352-b683bb666f8e12 Mar 2024pre-release

    Nothing published for this version

  29. v0.5.6-0.20240214004351-1361ac8a4f2114 Feb 2024pre-release

    Nothing published for this version

  30. v0.5.55 Feb 2024
    Release notes

    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
    Open source →
  31. v0.5.5-0.20240123120120-58189e676c6d23 Jan 2024pre-release

    Nothing published for this version

  32. v0.5.5-0.20240120052311-c79228fed46920 Jan 2024pre-release

    Nothing published for this version

  33. v0.5.5-0.20240117021320-f10fb3e9c25b17 Jan 2024pre-release

    Nothing published for this version

  34. v0.5.5-0.20240109033816-617899e69f0d9 Jan 2024pre-release

    Nothing published for this version

  35. v0.5.5-0.20240105020718-3281c80c79e95 Jan 2024pre-release

    Nothing published for this version

  36. v0.5.5-0.20231205075213-c3eb264d518f5 Dec 2023pre-release

    Nothing published for this version

  37. v0.5.5-0.20231201023602-61216e293a7d1 Dec 2023pre-release

    Nothing published for this version

  38. v0.5.5-0.20231129080622-4ae7f8a8c66629 Nov 2023pre-release

    Nothing published for this version

  39. v0.5.5-0.20231019164324-bef642d7393019 Oct 2023pre-release

    Nothing published for this version

  40. v0.5.5-0.20230925013041-4eed3001de9625 Sept 2023pre-release

    Nothing published for this version

  41. v0.5.5-0.20230923020956-5fe2954564e523 Sept 2023pre-release

    Nothing published for this version

  42. v0.5.5-0.20230915020215-7efd28ad9bd415 Sept 2023pre-release

    Nothing published for this version

  43. v0.5.5-0.20230905022247-9d3e64e308bb5 Sept 2023pre-release

    Nothing published for this version

  44. v0.5.5-0.20230829020130-c44c3c32989e29 Aug 2023pre-release

    Nothing published for this version

  45. v0.5.5-0.20230811022321-38de21a3a50311 Aug 2023pre-release

    Nothing published for this version

  46. v0.5.5-0.20230810053400-36d7597ae3ea10 Aug 2023pre-release

    Nothing published for this version

  47. v0.5.5-0.20230805104851-7fb8250be8595 Aug 2023pre-release

    Nothing published for this version

  48. v0.5.428 Jul 2023
    Release notes

    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
    Open source →
  49. v0.5.4-0.20230727080759-289eca6b6e1527 Jul 2023pre-release

    Nothing published for this version

  50. v0.5.312 Jul 2023
    Release notes

    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

    Open source →
  51. v0.5.3-0.20230709080306-456568f63cfb9 Jul 2023pre-release

    Nothing published for this version

  52. v0.5.3-0.20230708021352-f735b20ceb478 Jul 2023pre-release

    Nothing published for this version

  53. v0.5.3-0.20230706170310-2a20d47bb1ed6 Jul 2023pre-release

    Nothing published for this version

  54. v0.5.3-0.20230702044724-ccc8922f82ad2 Jul 2023pre-release

    Nothing published for this version

  55. v0.5.3-0.20230701062402-4c4c4c23a6791 Jul 2023pre-release

    Nothing published for this version

  56. v0.5.219 Jun 2023
    Release notes

    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

    Open source →
  57. v0.5.2-0.20230619024109-693cc04eb0e319 Jun 2023pre-release

    Nothing published for this version

  58. v0.5.2-0.20230611155142-c00791b15ff611 Jun 2023pre-release

    Nothing published for this version

  59. v0.5.2-0.20230519033322-dc457620eecc19 May 2023pre-release

    Nothing published for this version

  60. v0.5.2-0.20230417112716-cbf77c38db5617 Apr 2023pre-release

    Nothing published for this version