MCPcopy
hub / github.com/sirupsen/logrus / resolve

Method resolve

json_formatter.go:15–21  ·  view source on GitHub ↗
(key fieldKey)

Source from the content-addressed store, hash-verified

13type FieldMap map[fieldKey]string
14
15func (f FieldMap) resolve(key fieldKey) string {
16 if k, ok := f[key]; ok {
17 return k
18 }
19
20 return string(key)
21}
22
23// JSONFormatter formats logs into parsable json
24type JSONFormatter struct {

Callers 3

prefixFieldClashesFunction · 0.80
FormatMethod · 0.80
FormatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected