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