feat: support logx.WithFields (#2128)

This commit is contained in:
Kevin Wan
2022-07-11 23:19:26 +08:00
committed by GitHub
parent 6e50c87dca
commit 24787a946b
5 changed files with 103 additions and 21 deletions

View File

@@ -66,7 +66,7 @@ func (l *durationLogger) Sloww(msg string, fields ...LogField) {
}
func (l *durationLogger) WithContext(ctx context.Context) Logger {
return &traceLogger{
return &contextLogger{
ctx: ctx,
logEntry: logEntry{
Duration: l.Duration,