MCPcopy
hub / github.com/uber-go/zap / Enabled

Method Enabled

exp/zapslog/handler.go:133–135  ·  view source on GitHub ↗

Enabled reports whether the handler handles records at the given level.

(ctx context.Context, level slog.Level)

Source from the content-addressed store, hash-verified

131
132// Enabled reports whether the handler handles records at the given level.
133func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool {
134 return h.core.Enabled(convertSlogLevel(level))
135}
136
137// Handle handles the Record.
138func (h *Handler) Handle(ctx context.Context, record slog.Record) error {

Callers

nothing calls this directly

Calls 2

convertSlogLevelFunction · 0.85
EnabledMethod · 0.65

Tested by

no test coverage detected