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

Function LogSuccessWithDetails

pkg/shared/logger.go:115–121  ·  view source on GitHub ↗

LogSuccessWithDetails logs a successful operation

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

Source from the content-addressed store, hash-verified

113
114// LogSuccessWithDetails logs a successful operation
115func LogSuccessWithDetails(operation string, attrs ...slog.Attr) {
116 allAttrs := append([]slog.Attr{
117 slog.String("operation", operation),
118 slog.Time("timestamp", time.Now()),
119 }, attrs...)
120 StructuredInfo("Operation completed successfully", allAttrs...)
121}
122
123// LogConnectionEvent logs connection-related events
124func LogConnectionEvent(event string, remote string, attrs ...slog.Attr) {

Callers

nothing calls this directly

Calls 1

StructuredInfoFunction · 0.85

Tested by

no test coverage detected