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

Method Enabled

event.go:98–100  ·  view source on GitHub ↗

Enabled return false if the *Event is going to be filtered out by log level or sampling.

()

Source from the content-addressed store, hash-verified

96// Enabled return false if the *Event is going to be filtered out by
97// log level or sampling.
98func (e *Event) Enabled() bool {
99 return e != nil && e.level != Disabled
100}
101
102// Discard disables the event so Msg(f) won't print it.
103func (e *Event) Discard() *Event {

Callers 5

FuncMethod · 0.95
PrintMethod · 0.45
PrintfMethod · 0.45
PrintlnMethod · 0.45
ExampleFunction · 0.45

Calls

no outgoing calls

Tested by 1

ExampleFunction · 0.36