MCPcopy
hub / github.com/fabiolb/fabio / convertMsgFields

Function convertMsgFields

bgp/logger.go:68–75  ·  view source on GitHub ↗
(level, msg string, fields bgplog.Fields)

Source from the content-addressed store, hash-verified

66}
67
68func convertMsgFields(level, msg string, fields bgplog.Fields) string {
69 var b strings.Builder
70 fmt.Fprintf(&b, "[%s] gobgpd %s", level, msg)
71 for k, v := range fields {
72 fmt.Fprintf(&b, " %s=>%v", k, v)
73 }
74 return b.String()
75}

Callers 6

PanicMethod · 0.85
FatalMethod · 0.85
ErrorMethod · 0.85
WarnMethod · 0.85
InfoMethod · 0.85
DebugMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected