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

Function init

logger/logger.go:18–22  ·  view source on GitHub ↗

init initializes the default logger

()

Source from the content-addressed store, hash-verified

16
17// init initializes the default logger
18func init() {
19 cfg := NewDefaultConfig()
20 handler = NewHandler(os.Stdout, &cfg)
21 setDefaultHandler(handler)
22}
23
24// Init creates a logger and sets it as the default log/slog logger
25func Init(config *Config) error {

Callers

nothing calls this directly

Calls 3

NewHandlerFunction · 0.85
setDefaultHandlerFunction · 0.85
NewDefaultConfigFunction · 0.70

Tested by

no test coverage detected