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

Function GetLogKeys

base/logging.go:28–35  ·  view source on GitHub ↗

GetLogKeys returns log keys in a map

()

Source from the content-addressed store, hash-verified

26
27// GetLogKeys returns log keys in a map
28func GetLogKeys() map[string]bool {
29 consoleLogKeys := ConsoleLogKey().EnabledLogKeys()
30 logKeys := make(map[string]bool, len(consoleLogKeys))
31 for _, v := range consoleLogKeys {
32 logKeys[v] = true
33 }
34 return logKeys
35}
36
37// UpdateLogKeys updates the console's log keys from a map
38func UpdateLogKeys(ctx context.Context, keys map[string]bool, replace bool) {

Callers 1

handleGetLoggingMethod · 0.92

Calls 2

ConsoleLogKeyFunction · 0.85
EnabledLogKeysMethod · 0.80

Tested by

no test coverage detected