MCPcopy
hub / github.com/keploy/keploy / NewANSIConsoleEncoder

Function NewANSIConsoleEncoder

utils/log/logger.go:166–171  ·  view source on GitHub ↗
(cfg zapcore.EncoderConfig)

Source from the content-addressed store, hash-verified

164}
165
166func NewANSIConsoleEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder {
167 return ansiConsoleEncoder{
168 EncoderConfig: &cfg,
169 Encoder: zapcore.NewConsoleEncoder(cfg),
170 }
171}
172
173func (e ansiConsoleEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error) {
174 buf, err := e.Encoder.EncodeEntry(ent, fields)

Callers 6

NewFunction · 0.85
reattachDebugFileSinkFunction · 0.85
ChangeLogLevelFunction · 0.85
RedirectToStderrFunction · 0.85
AddModeFunction · 0.85
AddDebugFileSinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected