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

Function StructuredError

pkg/shared/logger.go:98–100  ·  view source on GitHub ↗

StructuredError logs an error message with structured fields

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

Source from the content-addressed store, hash-verified

96
97// StructuredError logs an error message with structured fields
98func StructuredError(msg string, attrs ...slog.Attr) {
99 GetLogger().LogAttrs(context.Background(), slog.LevelError, msg, attrs...)
100}
101
102// Convenience functions for common operations
103

Callers 1

LogErrorWithDetailsFunction · 0.85

Calls 1

GetLoggerFunction · 0.85

Tested by

no test coverage detected