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

Method EnabledLogKeys

base/log_keys.go:183–194  ·  view source on GitHub ↗

EnabledLogKeys returns a slice of enabled log key names.

()

Source from the content-addressed store, hash-verified

181
182// EnabledLogKeys returns a slice of enabled log key names.
183func (keyMask *LogKeyMask) EnabledLogKeys() []string {
184 if keyMask == nil {
185 return []string{}
186 }
187 var logKeys = make([]string, 0, len(logKeyNames))
188 for i := 0; i < len(logKeyNames); i++ {
189 if keyMask.enabled(LogKey(i), false) {
190 logKeys = append(logKeys, logKeyNames[i])
191 }
192 }
193 return logKeys
194}
195
196// ToLogKey takes a slice of case-sensitive log key names and will return a LogKeyMask bitfield
197// and a slice of deferred log functions for any warnings that may occur.

Callers 9

GetLogKeysFunction · 0.80
UpdateLogKeysFunction · 0.80
TestLogKeyNamesFunction · 0.80
BenchmarkEnabledLogKeysFunction · 0.80
TestDefaultLoggingFunction · 0.80
SetupServerContextFunction · 0.80
TestConfigEndpointFunction · 0.80

Calls 2

enabledMethod · 0.95
LogKeyTypeAlias · 0.85

Tested by 4

TestLogKeyNamesFunction · 0.64
BenchmarkEnabledLogKeysFunction · 0.64
TestDefaultLoggingFunction · 0.64
TestConfigEndpointFunction · 0.64