MCPcopy
hub / github.com/rs/zerolog / Bool

Method Bool

context.go:238–241  ·  view source on GitHub ↗

Bool adds the field key with val as a bool to the logger context.

(key string, b bool)

Source from the content-addressed store, hash-verified

236
237// Bool adds the field key with val as a bool to the logger context.
238func (c Context) Bool(key string, b bool) Context {
239 c.l.context = enc.AppendBool(enc.AppendKey(c.l.context, key), b)
240 return c
241}
242
243// Bools adds the field key with val as a []bool to the logger context.
244func (c Context) Bools(key string, b []bool) Context {

Callers

nothing calls this directly

Calls 2

AppendBoolMethod · 0.65
AppendKeyMethod · 0.65

Tested by

no test coverage detected