MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Enabled

Method Enabled

base/log_level.go:50–55  ·  view source on GitHub ↗

Enabled returns true if the log level is enabled.

(logLevel LogLevel)

Source from the content-addressed store, hash-verified

48
49// Enabled returns true if the log level is enabled.
50func (l *LogLevel) Enabled(logLevel LogLevel) bool {
51 if l == nil {
52 return false
53 }
54 return atomic.LoadUint32((*uint32)(l)) >= uint32(logLevel)
55}
56
57// String returns the string representation of a log level (e.g. "debug" or "warn")
58func (l LogLevel) String() string {

Callers 8

TestLogLevelFunction · 0.95
TestLogKeyFunction · 0.45
benchmarkLogKeyEnabledFunction · 0.45
GetBucketFunction · 0.45
shouldLogFunction · 0.45
TestLogLevelConcurrencyFunction · 0.45
BenchmarkLogLevelEnabledFunction · 0.45
BodyMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestLogLevelFunction · 0.76
TestLogKeyFunction · 0.36
benchmarkLogKeyEnabledFunction · 0.36
TestLogLevelConcurrencyFunction · 0.36
BenchmarkLogLevelEnabledFunction · 0.36