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

Function LogLevelCtx

base/logging.go:198–200  ·  view source on GitHub ↗

LogLevelCtx allows logging where the level can be set via parameter.

(ctx context.Context, logLevel LogLevel, logKey LogKey, format string, args ...any)

Source from the content-addressed store, hash-verified

196
197// LogLevelCtx allows logging where the level can be set via parameter.
198func LogLevelCtx(ctx context.Context, logLevel LogLevel, logKey LogKey, format string, args ...any) {
199 logTo(ctx, logLevel, logKey, format, args...)
200}
201
202// RecordStats writes the given stats JSON content to a stats log file, if enabled.
203// The content passed in is expected to be a JSON dictionary.

Callers 2

logRequestLineMethod · 0.92
logDurationMethod · 0.92

Calls 1

logToFunction · 0.85

Tested by

no test coverage detected