Skip to content

Commit

Permalink
added interface to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
DalvinCodes committed Jun 9, 2023
1 parent d4e9868 commit 4e45f5a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions utils/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ import (
"go.uber.org/zap"
)

type LoggerInterface interface {
Debug(args ...interface{})
Info(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
Panic(args ...interface{})
Fatal(args ...interface{})
Debugf(template string, args ...interface{})
Infof(template string, args ...interface{})
Warnf(template string, args ...interface{})
Errorf(template string, args ...interface{})
Panicf(template string, args ...interface{})
Fatalf(template string, args ...interface{})
With(args ...interface{}) *Logger
Sync() error
}

type Logger struct {
*zap.SugaredLogger
}
Expand Down

0 comments on commit 4e45f5a

Please sign in to comment.