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

Method WithField

entry.go:123–125  ·  view source on GitHub ↗

WithField adds a single field to the Entry.

(key string, value interface{})

Source from the content-addressed store, hash-verified

121
122// WithField adds a single field to the Entry.
123func (entry *Entry) WithField(key string, value interface{}) *Entry {
124 return entry.WithFields(Fields{key: value})
125}
126
127// WithFields adds a map of fields to the Entry.
128func (entry *Entry) WithFields(fields Fields) *Entry {

Callers 4

TestEntryPaniclnFunction · 0.95
TestEntryPanicfFunction · 0.95
TestEntryPanicFunction · 0.95
WithErrorMethod · 0.95

Calls 1

WithFieldsMethod · 0.95

Tested by 3

TestEntryPaniclnFunction · 0.76
TestEntryPanicfFunction · 0.76
TestEntryPanicFunction · 0.76