commit | 5c2e9b4951fdec1c49da02bc85e5f87a887a42f2 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Mon Aug 29 08:01:47 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Sep 06 19:59:29 2022 +0000 |
tree | 05e84698f44b5d8ffd5551027c83b6dc69e103c4 | |
parent | 334a2380cb910c8f550f5736c3bb95510c92a425 [diff] |
slog: Levels This is the first commit for the new experimental package `slog`, providing structured, leveled logging. golang.org/x/exp/slog implements the draft proposal currently under discussion at golang/go. This commit defines Level and the related type AtomicLevel. Change-Id: I2825a926dab14ea66a62313ca2b6cd5c1ca04683 Reviewed-on: https://go-review.googlesource.com/c/exp/+/426020 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.