Skip to content

Commit

Permalink
refactor With method of Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
chalvern committed Jun 10, 2019
1 parent 96b59a7 commit 2f3e77a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ func NewLoggerOf(component string) *Logger {

// With adds a variadic number of fields to the logging context.
// see https://github.com/uber-go/zap/blob/v1.10.0/sugar.go#L91
func (l *Logger) With(args ...interface{}) {
func (l *Logger) With(args ...interface{}) *Logger {
l.zapSugar = l.zapSugar.With(args...)
return l
}

// Debug package sugar of zap
Expand Down

0 comments on commit 2f3e77a

Please sign in to comment.