From d8d5d5a94b503f171f04abbd85e0fb915cf89f8c Mon Sep 17 00:00:00 2001 From: BabyHalimao Date: Sun, 2 Jun 2024 11:24:13 +0800 Subject: [PATCH] refactor: update `Logger.New` function comments --- log/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/logger.go b/log/logger.go index 8b03b68fc8..f32ff14c6e 100644 --- a/log/logger.go +++ b/log/logger.go @@ -107,7 +107,7 @@ type Logger interface { // With returns a new Logger that has this logger's attributes plus the given attributes With(ctx ...interface{}) Logger - // With returns a new Logger that has this logger's attributes plus the given attributes. Identical to 'With'. + // New returns a new Logger that has this logger's attributes plus the given attributes. Identical to 'With'. New(ctx ...interface{}) Logger // Log logs a message at the specified level with context key/value pairs