1
0
mirror of https://github.com/golang/go synced 2024-11-26 23:11:24 -07:00

log/slog: JSONHandler doesn't use special source format

Fixes #60329

Change-Id: Idb19da4830fa14c459bedbf143d550ce7c1dfdbd
Reviewed-on: https://go-review.googlesource.com/c/go/+/496815
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Sean Liao 2023-05-21 15:34:43 +01:00 committed by Jonathan Amsterdam
parent be91040ea7
commit 64c95d24f0

View File

@ -66,8 +66,7 @@ func (h *JSONHandler) WithGroup(name string) Handler {
// and the value of [Level.String] is output. // and the value of [Level.String] is output.
// //
// If the AddSource option is set and source information is available, // If the AddSource option is set and source information is available,
// the key is "source" // the key is "source", and the value is a record of type [Source].
// and the value is output as "FILE:LINE".
// //
// The message's key is "msg". // The message's key is "msg".
// //