Skip to content

Releases: gookit/slog

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

v0.3.4

26 Oct 02:00
Compare
Choose a tag to compare

Change Log

Update

  • up: use gookit/goutil/testutil instead of stretchr/testify on tests cc61f30
  • up: use any to replace all interface{} type 77eace3

Other

  • chore: remove repeat doc code line and update readme 82e63c9
  • build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.3 36f646d
  • chore: update readme and go version limit 8b00f4a
  • build(deps): bump github.com/stretchr/testify from 1.7.3 to 1.7.4 1b90a82
  • build(deps): bump github.com/gookit/goutil from 0.5.4 to 0.5.5 67778d1
  • build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 37f31ad
  • build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 aff4354
  • build(deps): bump github.com/gookit/goutil from 0.5.5 to 0.5.6 6ff643a
  • build(deps): bump github.com/gookit/goutil from 0.5.6 to 0.5.7 a2f88fa
  • build(deps): bump github.com/gookit/gsr from 0.0.7 to 0.0.8 655915e
  • build(deps): bump morphy2k/revive-action from 2.3.1 to 2.4.0 e51f6b8
  • build(deps): bump github.com/gookit/goutil from 0.5.7 to 0.5.8 7a1238f
  • build(deps): bump github.com/gookit/goutil from 0.5.8 to 0.5.9 2336f19
  • build(deps): bump github.com/gookit/color from 1.5.1 to 1.5.2 7919a96
  • build(deps): bump github.com/gookit/goutil from 0.5.9 to 0.5.10 7938272
  • build(deps): bump github.com/gookit/goutil from 0.5.10 to 0.5.11 cf34c5b
  • build(deps): bump github.com/gookit/goutil from 0.5.11 to 0.5.12 e43db2c
  • build(deps): bump morphy2k/revive-action from 2.4.0 to 2.4.1 93eec54
  • build(deps): bump github.com/gookit/goutil from 0.5.12 to 0.5.13 f0628b8
  • build(deps): bump github.com/gookit/goutil from 0.5.13 to 0.5.15 e9fd7ad
  • test: fix test error on rotaefile pkg feba08f

v0.3.3

14 Jun 00:05
Compare
Choose a tag to compare

Change Log

Fixed

  • fix: unit tests errot on rotatefile pkg 3a5bac2
  • fix: fix rotate file error on up dep goutil d2fe7d2

Update

  • up: update some config for create log handler e775d38
  • up: update the handler builder logic, update readme a59492b

Other

  • chore: update readme, add some config field desc. issues: #58 d2af535
  • build(deps): bump github.com/gookit/color from 1.5.0 to 1.5.1 7ffadfc
  • chore: update readme, update some preivew images f282d45
  • chore: update preview images, update some comments 7ec2b8c
  • build(deps): bump github.com/gookit/goutil from 0.5.2 to 0.5.4 93deba7
  • chore: update preview image and fix a test error 5d2c1b6