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

Function EnableStatsLogger

base/logging_config.go:219–225  ·  view source on GitHub ↗
(enabled bool)

Source from the content-addressed store, hash-verified

217}
218
219func EnableStatsLogger(enabled bool) {
220 logger := statsLogger.Load()
221 if logger == nil {
222 return
223 }
224 logger.Enabled.Set(enabled)
225}
226
227func EnableAuditLogger(ctx context.Context, enabled bool) {
228 logger := auditLogger.Load()

Callers 3

handlePutConfigMethod · 0.92
TestConfigEndpointFunction · 0.92

Calls 2

LoadMethod · 0.80
SetMethod · 0.45

Tested by 2

TestConfigEndpointFunction · 0.74