Skip to content

Commit

Permalink
rename WithFields methods
Browse files Browse the repository at this point in the history
  • Loading branch information
strobus committed Aug 25, 2020
1 parent df3b24c commit a34bf7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func InfoWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Info(args)
}

func InfoWithFieldsF(fields Fields, message string, args ...interface{}) {
func InfoWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Infof(message, args)
}

Expand All @@ -111,7 +111,7 @@ func DebugWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Debug(args)
}

func DebugWithFieldsF(fields Fields, message string, args ...interface{}) {
func DebugWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Debugf(message, args)
}

Expand All @@ -127,7 +127,7 @@ func ErrorWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Error(args)
}

func ErrorWithFieldsF(fields Fields, message string, args ...interface{}) {
func ErrorWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Errorf(message, args)
}

Expand All @@ -143,7 +143,7 @@ func WarnWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Warn(args)
}

func WarnWithFieldsF(fields Fields, message string, args ...interface{}) {
func WarnWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Warnf(message, args)
}

Expand All @@ -159,7 +159,7 @@ func FatalWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Fatal(args)
}

func FatalWithFieldsF(fields Fields, message string, args ...interface{}) {
func FatalWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Fatalf(message, args)
}

Expand All @@ -175,7 +175,7 @@ func PanicWithFields(fields Fields, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Panic(args)
}

func PanicWithFieldsF(fields Fields, message string, args ...interface{}) {
func PanicWithFieldsf(fields Fields, message string, args ...interface{}) {
logger.WithFields(logrus.Fields(fields)).Panicf(message, args)
}

Expand Down

0 comments on commit a34bf7c

Please sign in to comment.