(severity logSeverity, message string)
| 16 | ) |
| 17 | |
| 18 | func formatWireGuardLogLine(severity logSeverity, message string) string { |
| 19 | timestamp := time.Now().UTC().Format(wireGuardLogTimestampFormat) |
| 20 | return fmt.Sprintf("%s [%s] %s", timestamp, severity, message) |
| 21 | } |
| 22 | |
| 23 | func (wg *WireGuard) emitInfoLogf(format string, args ...any) { |
| 24 | wg.emitLogf(logSeverityInfo, format, args...) |