commit | b6b61370dfa8f70dcdf48df4e60647ec266209eb | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Dec 27 16:17:00 2022 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Dec 29 18:54:13 2022 +0000 |
tree | ef5ab9e6201e02cd53219cee64351f814d860a21 | |
parent | 29b388652f28d735ad4562391373d421a1d1a5bc [diff] |
slog: have Logger.With,WithGroup preserve context When we create a new Logger using With or WithGroup, preserve the context from the original Logger. Change-Id: I62cc73aaff50d6ae755ca57f5a934604c4645f2e Reviewed-on: https://go-review.googlesource.com/c/exp/+/459615 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Alan Donovan <adonovan@google.com>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.