LogNetworkf logs a formatted network message with emoji prefix
(format string, args ...interface{})
| 159 | |
| 160 | // LogNetworkf logs a formatted network message with emoji prefix |
| 161 | func 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 |
| 170 | func LogConnection(operation string, details ...interface{}) { |
no test coverage detected