MCPcopy
hub / github.com/keploy/keploy / Write

Method Write

utils/log/logger.go:109–117  ·  view source on GitHub ↗
(ent zapcore.Entry, fields []zapcore.Field)

Source from the content-addressed store, hash-verified

107}
108
109func (c *redactingCore) Write(ent zapcore.Entry, fields []zapcore.Field) error {
110 if r := loadRedactor(); r != nil {
111 r.RedactEntry(&ent)
112 for i := range fields {
113 r.RedactField(&fields[i])
114 }
115 }
116 return c.Core.Write(ent, fields)
117}
118
119// redactingWriter wraps a zapcore.WriteSyncer and runs the active Redactor's
120// RedactEncoded pass on every byte slice before it reaches the sink. This is

Callers

nothing calls this directly

Calls 4

loadRedactorFunction · 0.85
RedactEntryMethod · 0.65
RedactFieldMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected