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

Method With

pkg/log/fields.go:91–96  ·  view source on GitHub ↗

With returns a new F that has the fields in nodes.

(nodes map[string]any)

Source from the content-addressed store, hash-verified

89
90// With returns a new F that has the fields in nodes.
91func (f *F) With(nodes map[string]any) *F {
92 return &F{
93 parent: f,
94 nodes: nodes,
95 }
96}
97
98// WithField returns a new fielder that has the key set to value.
99func (f *F) WithField(name string, val any) *F {

Callers 2

WithFieldMethod · 0.95
WithFieldsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected