MCPcopy Create free account
hub / github.com/PasarGuard/node / formatWireGuardLogLine

Function formatWireGuardLogLine

backend/wireguard/log.go:18–21  ·  view source on GitHub ↗
(severity logSeverity, message string)

Source from the content-addressed store, hash-verified

16)
17
18func 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
23func (wg *WireGuard) emitInfoLogf(format string, args ...any) {
24 wg.emitLogf(logSeverityInfo, format, args...)

Callers 1

emitLogLockedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected