Level returns the minimum log level for the handler.
()
| 86 | |
| 87 | // Level returns the minimum log level for the handler. |
| 88 | func (h *Handler) Level() slog.Leveler { |
| 89 | return h.config.Level |
| 90 | } |
| 91 | |
| 92 | // Enabled checks if the given log level is enabled. |
| 93 | func (h *Handler) Enabled(ctx context.Context, level slog.Level) bool { |