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

Function LogSuccessf

pkg/shared/errors.go:49–55  ·  view source on GitHub ↗

LogSuccessf logs a formatted success message with emoji prefix

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

Source from the content-addressed store, hash-verified

47
48// LogSuccessf logs a formatted success message with emoji prefix
49func LogSuccessf(format string, args ...interface{}) {
50 msg := fmt.Sprintf("✅ "+format, args...)
51 GetLogger().Info(msg,
52 slog.String("formatted_message", fmt.Sprintf(format, args...)),
53 slog.Time("timestamp", time.Now()),
54 )
55}
56
57// LogInfo logs an informational message with emoji prefix
58func LogInfo(operation string, details ...interface{}) {

Calls 1

GetLoggerFunction · 0.85

Tested by

no test coverage detected