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

Function Level

logger/logger.go:55–60  ·  view source on GitHub ↗

Level returns the current logger's minimum log level.

()

Source from the content-addressed store, hash-verified

53
54// Level returns the current logger's minimum log level.
55func Level() slog.Leveler {
56 if handler != nil {
57 return handler.Level()
58 }
59 return slog.LevelInfo
60}
61
62func Fatal(msg string, args ...any) {
63 slog.Log(context.Background(), LevelCritical, msg, args...)

Callers 1

NewFunction · 0.92

Calls 1

LevelMethod · 0.80

Tested by

no test coverage detected