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

Function logKeyMask

base/log_keys.go:256–262  ·  view source on GitHub ↗

logKeyPtr is a convenience function that returns a LogKeyMask for the given logKeys

(logKeys ...LogKey)

Source from the content-addressed store, hash-verified

254
255// logKeyPtr is a convenience function that returns a LogKeyMask for the given logKeys
256func logKeyMask(logKeys ...LogKey) *LogKeyMask {
257 var mask LogKeyMask
258 for _, logKey := range logKeys {
259 mask.Enable(logKey)
260 }
261 return &mask
262}

Callers 10

TestConsoleLogDefaultsFunction · 0.85
UpdateLogKeysFunction · 0.85
TestSetTestLoggingFunction · 0.85
setTestLoggingFunction · 0.85
TestLogKeyFunction · 0.85
TestLogKeyNamesFunction · 0.85
BenchmarkLogKeyEnabledFunction · 0.85
BenchmarkToggleLogKeysFunction · 0.85
BenchmarkEnabledLogKeysFunction · 0.85

Calls 1

EnableMethod · 0.95

Tested by 8

TestConsoleLogDefaultsFunction · 0.68
TestSetTestLoggingFunction · 0.68
TestLogKeyFunction · 0.68
TestLogKeyNamesFunction · 0.68
BenchmarkLogKeyEnabledFunction · 0.68
BenchmarkToggleLogKeysFunction · 0.68
BenchmarkEnabledLogKeysFunction · 0.68