MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Level

Method Level

logger/handler.go:88–90  ·  view source on GitHub ↗

Level returns the minimum log level for the handler.

()

Source from the content-addressed store, hash-verified

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

Callers 6

EnabledMethod · 0.80
HandleMethod · 0.80
LevelFunction · 0.80
NewHookFunction · 0.80
EnabledMethod · 0.80
newLogHookFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected