go/src/log
Jonathan Amsterdam db7bb2742c log/slog: handle times with undefined UnixNanos
slog tries to represent a time.Time without allocations, which involves
storing its UnixNanos value. But UnixNanos is undefined for some valid
times. Provide a fallback representation for those times by storing them
in the `any` field of `Value`.

Fixes #65902.

Change-Id: I736c739a92f77d7b1122ea0831524acdd2c4703f
Reviewed-on: https://go-review.googlesource.com/c/go/+/585519
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2024-05-16 16:12:08 +00:00
..
internal log,log/slog: get correct source line when slog calls log 2023-04-12 18:33:50 +00:00
slog log/slog: handle times with undefined UnixNanos 2024-05-16 16:12:08 +00:00
syslog log: add available godoc link 2023-10-23 22:56:07 +00:00
example_test.go log: adds a Logger Output method Example 2017-07-16 03:57:11 +00:00
log.go log: add available godoc link 2023-10-23 22:56:07 +00:00
log_test.go log: avoid leaking goroutines in TestOutputRace 2023-04-21 20:04:37 +00:00