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

Function StructuredWarn

pkg/shared/logger.go:93–95  ·  view source on GitHub ↗

StructuredWarn logs a warning message with structured fields

(msg string, attrs ...slog.Attr)

Source from the content-addressed store, hash-verified

91
92// StructuredWarn logs a warning message with structured fields
93func StructuredWarn(msg string, attrs ...slog.Attr) {
94 GetLogger().LogAttrs(context.Background(), slog.LevelWarn, msg, attrs...)
95}
96
97// StructuredError logs an error message with structured fields
98func StructuredError(msg string, attrs ...slog.Attr) {

Callers

nothing calls this directly

Calls 1

GetLoggerFunction · 0.85

Tested by

no test coverage detected