From eee6f2b921e13d10faff6d45dc099c3a45d389b9 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Fri, 26 May 2023 10:36:54 -0400 Subject: [PATCH] go1.21.html: remove log/slog package "changes" Since log/slog doesn't appear in earlier Go versions, we don't need to document these proposals as changes. Change-Id: Iae6ed9ca6bd22d8c46c21deece9ddedf7d739032 Reviewed-on: https://go-review.googlesource.com/c/go/+/498272 Run-TryBot: Jonathan Amsterdam Reviewed-by: Eli Bendersky TryBot-Bypass: Jonathan Amsterdam --- doc/go1.21.html | 56 +++---------------------------------------------- 1 file changed, 3 insertions(+), 53 deletions(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index b7686d3fb8..aa6fce6d36 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -252,7 +252,9 @@ Do not send CLs removing the interior tags from such phrases.

New log/slog package

-

+

The new log/slog package provides structured logging with levels. Structured logging emits key-value pairs to enable fast, accurate processing of large amounts of log data. @@ -605,58 +607,6 @@ Do not send CLs removing the interior tags from such phrases. -

log/slog
-
-

- TODO: https://go.dev/issue/59060: arg to Record.Attrs should return bool -

- -

- TODO: https://go.dev/issue/59141: handle panics in LogValuer.LogValue -

- -

- TODO: https://go.dev/issue/59204: change slog.Group signature to ...any -

- -

- TODO: https://go.dev/issue/59280: ReplaceAttr gets Source struct instead of file:line -

- -

- TODO: https://go.dev/issue/59282: drop only completely empty Attrs -

- -

- TODO: https://go.dev/issue/59339: change constructors to NewXXXHandler(io.Writer, *HandlerOptions) -

- -

- TODO: https://go.dev/issue/59345: JSONHandler should format everything like json.Marshal -

- -

- TODO: https://go.dev/cl/477295: log/slog: initial commit; modified api/next/56345.txt -

- -

- TODO: https://go.dev/cl/484096: log/slog: function argument to Record.Attrs returns bool; modified api/next/59060.txt -

- -

- TODO: https://go.dev/cl/486376: log/slog: add Source type for source location; modified api/next/59280.txt -

- -

- TODO: https://go.dev/cl/486415: log/slog: built-in handler constructors take options as a second arg; modified api/next/56345.txt, api/next/59339.txt -

- -

- TODO: https://go.dev/cl/487855: log/slog: Group takes ...any; modified api/next/56345.txt, api/next/59204.txt -

-
-
-
math

-- 2.44.0