Jonathan Amsterdam f67b0a73e3 log/slog: initial commit
The slog structured logging package.

This code was copied from the slog directory of the x/exp repo
at commit 642cacee5cc05231f45555a333d07f1005ffc287, with the
following changes:

- Change import paths.
- Delete unused files list.go, list_test.go.
- Rename example_depth_test.go to example_wrap_test.go and
  adjust example output.
- Change the tag safe_values to safe_slog_values.
- Make captureHandler goroutine-safe to fix a race condition
  in benchmarks.
- Other small changes as suggested in review comments.

Also, add dependencies to go/build/deps_test.go.

Also, add new API for the API checker.

Updates golang/go#56345.

Change-Id: Id8d720967571ced5c5f32c84a8dd9584943cd7df
Reviewed-on: https://go-review.googlesource.com/c/go/+/477295
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2023-03-21 20:55:33 +00:00
..
2023-03-11 05:07:02 +00:00
2023-03-13 21:58:46 +00:00
2023-03-16 16:44:21 +00:00
2023-01-24 22:06:45 +00:00
2023-01-30 16:00:58 +00:00
2023-03-21 20:55:33 +00:00
2023-02-15 21:56:30 +00:00
2023-02-03 04:37:17 +00:00
2023-02-02 19:39:34 +00:00
2023-02-13 21:00:42 +00:00
2023-02-03 18:22:53 +00:00
2023-02-02 16:40:29 +00:00