MCPcopy Index your code
hub / github.com/Monibuca/engine / With

Method With

log/log.go:88–96  ·  view source on GitHub ↗
(fields ...zap.Field)

Source from the content-addressed store, hash-verified

86}
87
88func (l Logger) With(fields ...zap.Field) *Logger {
89 for i, field := range fields {
90 if v, ok := l.lang[field.Key]; ok {
91 fields[i].Key = v
92 }
93 }
94 l.Logger = l.Logger.With(fields...)
95 return &l
96}
97
98func (l *Logger) formatLang(msg *string, fields []zapcore.Field) {
99 if l.lang != nil {

Callers

nothing calls this directly

Calls 1

WithMethod · 0.65

Tested by

no test coverage detected