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

Function LogNetworkf

pkg/shared/errors.go:161–167  ·  view source on GitHub ↗

LogNetworkf logs a formatted network message with emoji prefix

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

159
160// LogNetworkf logs a formatted network message with emoji prefix
161func LogNetworkf(format string, args ...interface{}) {
162 msg := fmt.Sprintf("🌐 "+format, args...)
163 GetLogger().Info(msg,
164 slog.String("formatted_message", fmt.Sprintf(format, args...)),
165 slog.Time("timestamp", time.Now()),
166 )
167}
168
169// LogConnection logs a connection-related message with emoji prefix
170func LogConnection(operation string, details ...interface{}) {

Callers 2

GetCurrentMethod · 0.92

Calls 1

GetLoggerFunction · 0.85

Tested by

no test coverage detected