feat: add logger.WithFields (#2546)
This commit is contained in:
@@ -45,4 +45,6 @@ type Logger interface {
|
||||
WithContext(ctx context.Context) Logger
|
||||
// WithDuration returns a new logger with the given duration.
|
||||
WithDuration(d time.Duration) Logger
|
||||
// WithFields returns a new logger with the given fields.
|
||||
WithFields(fields ...LogField) Logger
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user