LogConnectionEvent logs connection-related events
(event string, remote string, attrs ...slog.Attr)
| 122 | |
| 123 | // LogConnectionEvent logs connection-related events |
| 124 | func LogConnectionEvent(event string, remote string, attrs ...slog.Attr) { |
| 125 | allAttrs := append([]slog.Attr{ |
| 126 | slog.String("event", event), |
| 127 | slog.String("remote_addr", remote), |
| 128 | slog.Time("timestamp", time.Now()), |
| 129 | }, attrs...) |
| 130 | StructuredInfo("Connection event", allAttrs...) |
| 131 | } |
| 132 | |
| 133 | // LogMetrics logs performance metrics |
| 134 | func LogMetrics(component string, metrics map[string]interface{}) { |
nothing calls this directly
no test coverage detected