1
0
mirror of https://github.com/golang/go synced 2024-09-28 21:34:30 -06:00

log/slog: add link to handler-writing guide

Add a shortlink in the doc to a guide to writing handlers, which is a work
in progress.

Change-Id: I1b01c90468382ffe53d9ad6f38253906e3f44857
Reviewed-on: https://go-review.googlesource.com/c/go/+/495920
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Jonathan Amsterdam 2023-05-17 16:12:42 -04:00
parent a7cb7df45a
commit 9b57b33556

View File

@ -312,5 +312,9 @@ Now computeExpensiveValue will only be called when the line is enabled.
The built-in handlers acquire a lock before calling [io.Writer.Write] The built-in handlers acquire a lock before calling [io.Writer.Write]
to ensure that each record is written in one piece. User-defined to ensure that each record is written in one piece. User-defined
handlers are responsible for their own locking. handlers are responsible for their own locking.
# Writing a handler
For a guide to writing a custom handler, see https://golang.org/s/slog-handler-guide.
*/ */
package slog package slog