Skip to content

Commit

Permalink
Merge pull request #138 from abbasegbeyemi/remove-tracef-from-logger-…
Browse files Browse the repository at this point in the history
…interface

Remove tracef from logger interface
  • Loading branch information
wagslane committed Oct 19, 2023
2 parents d6212f3 + 0957c8a commit 937bab2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions examples/logger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ func (l errorLogger) Infof(format string, v ...interface{}) {
func (l errorLogger) Debugf(format string, v ...interface{}) {
}

func (l errorLogger) Tracef(format string, v ...interface{}) {}

func main() {
mylogger := &errorLogger{}

Expand Down
1 change: 0 additions & 1 deletion internal/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ type Logger interface {
Warnf(string, ...interface{})
Infof(string, ...interface{})
Debugf(string, ...interface{})
Tracef(string, ...interface{})
}
3 changes: 0 additions & 3 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,3 @@ func (l stdDebugLogger) Infof(format string, v ...interface{}) {
func (l stdDebugLogger) Debugf(format string, v ...interface{}) {
log.Printf(fmt.Sprintf("%s DEBUG: %s", loggingPrefix, format), v...)
}

// Tracef -
func (l stdDebugLogger) Tracef(format string, v ...interface{}) {}

0 comments on commit 937bab2

Please sign in to comment.