MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / WithField

Function WithField

utils/log/logwrapper.go:246–248  ·  view source on GitHub ↗

WithField creates an entry from the standard logger and adds a field to it. If you want multiple fields, use `WithFields`. Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal or Panic on the Entry it returns.

(key string, value interface{})

Source from the content-addressed store, hash-verified

244// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
245// or Panic on the Entry it returns.
246func WithField(key string, value interface{}) *Entry {
247 return (*Entry)(logrus.WithField(key, value))
248}
249
250// WithFields creates an entry from the standard logger and adds multiple
251// fields to it. This is simply a helper for `WithField`, invoking it

Callers 15

advanceNextHeightMethod · 0.92
newConnFunction · 0.92
ackWorkerMethod · 0.92
CloseMethod · 0.92
BeginTxMethod · 0.92
PrepareContextMethod · 0.92
runPeerListUpdaterFunction · 0.92
initNodeFunction · 0.92
DialFunction · 0.92
LoadPrivateKeyFunction · 0.92
InitLocalKeyPairFunction · 0.92

Calls 1

WithFieldMethod · 0.80

Tested by 5

initNodeFunction · 0.74
TestFullProcessFunction · 0.74
call2Function · 0.68
TestWithFieldFunction · 0.68