Skip to content

Commit eee6f2b

Browse files
committed
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 <jba@google.com> Reviewed-by: Eli Bendersky <eliben@google.com> TryBot-Bypass: Jonathan Amsterdam <jba@google.com>
1 parent bf14663 commit eee6f2b

File tree

1 file changed

+3
-53
lines changed

1 file changed

+3
-53
lines changed

doc/go1.21.html

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ <h2 id="library">Core library</h2>
252252

253253
<h3 id="slog">New log/slog package</h3>
254254

255-
<p>
255+
<p><!-- https://go.dev/issue/59060, https://go.dev/issue/59141, https://go.dev/issue/59204, https://go.dev/issue/59280,
256+
https://go.dev/issue/59282, https://go.dev/issue/59339, https://go.dev/issue/59345,
257+
CL 477295, CL 484096, CL 486376, CL 486415, CL 487855 -->
256258
The new <a href="/pkg/log/slog">log/slog</a> package provides structured logging with levels.
257259
Structured logging emits key-value pairs
258260
to enable fast, accurate processing of large amounts of log data.
@@ -605,58 +607,6 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
605607
</dd>
606608
</dl><!-- io/fs -->
607609

608-
<dl id="log/slog"><dt><a href="/pkg/log/slog/">log/slog</a></dt>
609-
<dd>
610-
<p><!-- https://go.dev/issue/59060 -->
611-
TODO: <a href="https://go.dev/issue/59060">https://go.dev/issue/59060</a>: arg to Record.Attrs should return bool
612-
</p>
613-
614-
<p><!-- https://go.dev/issue/59141 -->
615-
TODO: <a href="https://go.dev/issue/59141">https://go.dev/issue/59141</a>: handle panics in LogValuer.LogValue
616-
</p>
617-
618-
<p><!-- https://go.dev/issue/59204 -->
619-
TODO: <a href="https://go.dev/issue/59204">https://go.dev/issue/59204</a>: change slog.Group signature to ...any
620-
</p>
621-
622-
<p><!-- https://go.dev/issue/59280 -->
623-
TODO: <a href="https://go.dev/issue/59280">https://go.dev/issue/59280</a>: ReplaceAttr gets Source struct instead of file:line
624-
</p>
625-
626-
<p><!-- https://go.dev/issue/59282 -->
627-
TODO: <a href="https://go.dev/issue/59282">https://go.dev/issue/59282</a>: drop only completely empty Attrs
628-
</p>
629-
630-
<p><!-- https://go.dev/issue/59339 -->
631-
TODO: <a href="https://go.dev/issue/59339">https://go.dev/issue/59339</a>: change constructors to NewXXXHandler(io.Writer, *HandlerOptions)
632-
</p>
633-
634-
<p><!-- https://go.dev/issue/59345 -->
635-
TODO: <a href="https://go.dev/issue/59345">https://go.dev/issue/59345</a>: JSONHandler should format everything like json.Marshal
636-
</p>
637-
638-
<p><!-- CL 477295 -->
639-
TODO: <a href="https://go.dev/cl/477295">https://go.dev/cl/477295</a>: log/slog: initial commit; modified api/next/56345.txt
640-
</p>
641-
642-
<p><!-- CL 484096 -->
643-
TODO: <a href="https://go.dev/cl/484096">https://go.dev/cl/484096</a>: log/slog: function argument to Record.Attrs returns bool; modified api/next/59060.txt
644-
</p>
645-
646-
<p><!-- CL 486376 -->
647-
TODO: <a href="https://go.dev/cl/486376">https://go.dev/cl/486376</a>: log/slog: add Source type for source location; modified api/next/59280.txt
648-
</p>
649-
650-
<p><!-- CL 486415 -->
651-
TODO: <a href="https://go.dev/cl/486415">https://go.dev/cl/486415</a>: log/slog: built-in handler constructors take options as a second arg; modified api/next/56345.txt, api/next/59339.txt
652-
</p>
653-
654-
<p><!-- CL 487855 -->
655-
TODO: <a href="https://go.dev/cl/487855">https://go.dev/cl/487855</a>: log/slog: Group takes ...any; modified api/next/56345.txt, api/next/59204.txt
656-
</p>
657-
</dd>
658-
</dl><!-- log/slog -->
659-
660610
<dl id="math"><dt><a href="/pkg/math/">math</a></dt>
661611
<dd>
662612
<p><!-- https://go.dev/issue/56491 -->

0 commit comments

Comments
 (0)