MCPcopy
hub / github.com/keploy/keploy / SetRedactor

Function SetRedactor

utils/log/logger.go:57–59  ·  view source on GitHub ↗

SetRedactor registers r as the active redactor for every logger built by this package. Pass nil to disable. Safe to call at any time; only log lines emitted after the call are affected. Registration is process-global by design — keploy daemonizes one logger and there is no per-logger or per-test sco

(r Redactor)

Source from the content-addressed store, hash-verified

55// move is to attach the redactor to the core/writer wrappers at
56// construction time rather than reading it from a package var.
57func SetRedactor(r Redactor) {
58 globalRedactor.Store(redactorHolder{r: r})
59}
60
61func loadRedactor() Redactor {
62 v := globalRedactor.Load()

Calls 1

StoreMethod · 0.45