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>
This commit is contained in:
Jonathan Amsterdam 2025-03-26 11:05:29 -04:00
parent 9ce47e66e8
commit b138f8e4d2

View File

@ -28,6 +28,8 @@ import (
// //
// Users of the slog package should not invoke Handler methods directly. // Users of the slog package should not invoke Handler methods directly.
// They should use the methods of [Logger] instead. // They should use the methods of [Logger] instead.
//
// Before implementing your own handler, consult https://go.dev/s/slog-handler-guide.
type Handler interface { type Handler interface {
// Enabled reports whether the handler handles records at the given level. // Enabled reports whether the handler handles records at the given level.
// The handler ignores records whose level is lower. // The handler ignores records whose level is lower.