Skip to content

Commit b138f8e

Browse files
committed
log/slog: Handler doc points to handler guide
There's a link in the package doc, but there should be one here too. For #73057. Change-Id: I8f8fe73f20bb6dd49cdf23b5f7634a92d4f7add9 Reviewed-on: https://go-review.googlesource.com/c/go/+/661015 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Sean Liao <sean@liao.dev> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 9ce47e6 commit b138f8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/log/slog/handler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import (
2828
//
2929
// Users of the slog package should not invoke Handler methods directly.
3030
// They should use the methods of [Logger] instead.
31+
//
32+
// Before implementing your own handler, consult https://go.dev/s/slog-handler-guide.
3133
type Handler interface {
3234
// Enabled reports whether the handler handles records at the given level.
3335
// The handler ignores records whose level is lower.

0 commit comments

Comments
 (0)