refactor: update Logger.New function comments

This commit is contained in:
BabyHalimao 2024-06-02 11:24:13 +08:00
parent 3e608f9372
commit d8d5d5a94b

View file

@ -107,7 +107,7 @@ type Logger interface {
// With returns a new Logger that has this logger's attributes plus the given attributes // With returns a new Logger that has this logger's attributes plus the given attributes
With(ctx ...interface{}) Logger 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 New(ctx ...interface{}) Logger
// Log logs a message at the specified level with context key/value pairs // Log logs a message at the specified level with context key/value pairs