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

Function LogErrorf

pkg/shared/errors.go:21–27  ·  view source on GitHub ↗

LogErrorf logs a formatted error message with emoji prefix

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

Source from the content-addressed store, hash-verified

19
20// LogErrorf logs a formatted error message with emoji prefix
21func LogErrorf(format string, args ...interface{}) {
22 msg := fmt.Sprintf("❌ "+format, args...)
23 GetLogger().Error(msg,
24 slog.String("formatted_message", fmt.Sprintf(format, args...)),
25 slog.Time("timestamp", time.Now()),
26 )
27}
28
29// LogSuccess logs a success message with emoji prefix
30func LogSuccess(operation string, details ...interface{}) {

Callers 15

handleControlStreamFunction · 0.92
handleSOCKS5StreamFunction · 0.92
startHealthCheckMethod · 0.92
handleDashboardDataMethod · 0.92
handleConnectionsMethod · 0.92
handleSessionsMethod · 0.92
handleDestinationsMethod · 0.92
handleWebSocketMethod · 0.92
startBroadcasterMethod · 0.92
startGoroutineMethod · 0.92
cleanupSessionMethod · 0.92
shutdownMethod · 0.92

Calls 2

GetLoggerFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected