MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithFields

Method WithFields

pkg/log/fields.go:108–110  ·  view source on GitHub ↗

WithFields returns a new fielder that has all the fields of the other fielder.

(fields Fielder)

Source from the content-addressed store, hash-verified

106
107// WithFields returns a new fielder that has all the fields of the other fielder.
108func (f *F) WithFields(fields Fielder) *F {
109 return f.With(fields.Fields())
110}
111
112// WithError returns new fields that contain the passed error and all its fields (if any).
113func (f *F) WithError(err error) *F {

Callers

nothing calls this directly

Calls 2

WithMethod · 0.95
FieldsMethod · 0.65

Tested by

no test coverage detected