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