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

Function WithFields

utils/log/logwrapper.go:256–258  ·  view source on GitHub ↗

WithFields creates an entry from the standard logger and adds multiple fields to it. This is simply a helper for `WithField`, invoking it once for each field. Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal or Panic on the Entry it returns.

(fields Fields)

Source from the content-addressed store, hash-verified

254// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
255// or Panic on the Entry it returns.
256func WithFields(fields Fields) *Entry {
257 return (*Entry)(logrus.WithFields(logrus.Fields(fields)))
258}
259
260// WithTime add time fields to log entry.
261func WithTime(t time.Time) *Entry {

Callers 15

updateAccountFunction · 0.92
deleteAccountFunction · 0.92
updateShardChainFunction · 0.92
deleteShardChainFunction · 0.92
updateProviderFunction · 0.92
deleteProviderFunction · 0.92
loadBlocksFunction · 0.92
NewChainWithContextFunction · 0.92
StopMethod · 0.92
produceBlockMethod · 0.92
advanceNextHeightMethod · 0.92
syncHeadsMethod · 0.92

Calls 1

WithFieldsMethod · 0.80

Tested by 11

initNodeFunction · 0.74
waitForMirrorCompleteFunction · 0.74
getJSONFunction · 0.74
TestFullProcessFunction · 0.74
waitProfileCheckingFunction · 0.74
waitProfileCheckingFunction · 0.74
PrepareMethod · 0.74
registerNodeMethod · 0.74
IncCounterMethod · 0.74
IncCounterSimpleArgsMethod · 0.74
TestWithFieldFunction · 0.68