Skip to content

Releases: fortio/log

v1.12.2

03 Apr 19:00
c4c7d64
Compare
Choose a tag to compare

What's Changed

  • Handle errors printing like slog json marshaller, ie use .Error() unless there is an explicit marshaller, that will avoid missing details for net read errors for instance and is a better fix than the original for #52 by @ldemailly in #60

Full Changelog: v1.12.1...v1.12.2

v1.12.1

22 Mar 18:16
92bd010
Compare
Choose a tag to compare

What's Changed

Mostly CI change and minor linter induced code improvement

Full Changelog: v1.12.0...v1.12.1

v1.12.0

22 Nov 04:22
0e5e8b4
Compare
Choose a tag to compare

What's Changed

  • Recursive json serialization for structured attributes (log.Any) by @ldemailly in #50
  • Http response recording/logging LogAndCall recording duration size and status + Environment variables based config by @ldemailly in #53

Full Changelog: v1.11.0...v1.12.0

v1.11.0

18 Aug 03:49
1ea5181
Compare
Choose a tag to compare

What's Changed

  • use json unquoted number/bool types, supported nested arrays and maps, improving perf/benchmarks by @ldemailly in #46

Full Changelog: v1.10.0...v1.11.0

v1.10.0

04 Aug 00:53
31afb57
Compare
Choose a tag to compare

What's Changed

  • Add std logging compatibility and interception options (#44)

To enable fixing fortio/fortio#802

Full Changelog: v1.9.3...v1.10.0

v1.9.3

03 Aug 00:51
d41a448
Compare
Choose a tag to compare

What's Changed

  • Changing color output again use [DBG] etc for levels instead of Debg>, use rN for go Routine id instead of [N] (#43)

Full Changelog: v1.9.2...v1.9.3

v1.9.2

02 Aug 20:33
1095950
Compare
Choose a tag to compare

What's Changed

  • Have a prefix even for tools to avoid the I for Info next to a verb looking off (#42)

color

Full Changelog: v1.9.1...v1.9.2

v1.9.1

01 Aug 21:30
0f14c24
Compare
Choose a tag to compare

What's Changed

  • (Also) Update LevelToColor array, for logc (#41)

Full Changelog: v1.9.0...v1.9.1

v1.9.0

01 Aug 01:28
a05b03a
Compare
Choose a tag to compare

What's Changed

  • Allow caller code to use Colors directly without if - e.g. log.Colors.Green is either green ansi code or empty string based on color mode (#40)

Full Changelog: v1.8.1...v1.9.0

v1.8.1

22 Jul 00:43
c0e607f
Compare
Choose a tag to compare

What's Changed

  • Always log the host/authority when logging http requests (#38)
  • Add thread/goroutine id in JSON and color console mode (turn off with log.Config.GoroutineID = false (#37)
  • Use short field name for that ID: r (#39) [thus making 1.8.0 tag a pre release]

Credits go to @kortschak and @LaevusDexter for the dark arts code in goroutine (imported from https://github.com/kortschak/goroutine/)

Full Changelog: v1.7.0...v1.8.1