MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / SetLogLevel

Function SetLogLevel

pkg/shared/logger.go:163–169  ·  view source on GitHub ↗

SetLogLevel dynamically sets the log level

(level slog.Level)

Source from the content-addressed store, hash-verified

161
162// SetLogLevel dynamically sets the log level
163func SetLogLevel(level slog.Level) {
164 // Note: slog doesn't support dynamic level changes easily
165 // This would require reinitializing the handler
166 config := DefaultLogConfig()
167 config.Level = level
168 InitLogger(config)
169}

Callers

nothing calls this directly

Calls 2

DefaultLogConfigFunction · 0.85
InitLoggerFunction · 0.85

Tested by

no test coverage detected