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

Function LogWithContext

pkg/shared/logger.go:78–80  ·  view source on GitHub ↗

Structured logging functions with context support LogWithContext logs a message with context and structured fields

(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)

Source from the content-addressed store, hash-verified

76
77// LogWithContext logs a message with context and structured fields
78func LogWithContext(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr) {
79 GetLogger().LogAttrs(ctx, level, msg, attrs...)
80}
81
82// LogDebug logs a debug message with structured fields
83func LogDebug(msg string, attrs ...slog.Attr) {

Callers

nothing calls this directly

Calls 1

GetLoggerFunction · 0.85

Tested by

no test coverage detected