]> Cypherpunks.ru repositories - gostls13.git/commit
log/slog: clarify the limits of TextHandler output parseability
authorJonathan Amsterdam <jba@google.com>
Tue, 21 Mar 2023 23:27:30 +0000 (19:27 -0400)
committerJonathan Amsterdam <jba@google.com>
Fri, 24 Mar 2023 20:41:40 +0000 (20:41 +0000)
commitea2d4a7ef674b4a0ea0e53ffecbc63320b91f25f
treebaf48810d5d043fc3e5cf478bfb9cf9dcaab58f1
parent42137704fca158f14c4aebff61b54ebeae788a4a
log/slog: clarify the limits of TextHandler output parseability

Give an example illustrating the problem with dots inside groups
or keys. Clarify that to fix it in general, you need to do more
than escape the keys, since that won't distinguish the group "a.b"
from the two groups "a" and "b".

Updates #56345.

Change-Id: Ide301899c548d50b0a1f18e93e93d6e11ad485cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/478199
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/log/slog/text_handler.go