From b0304e51ecb3260a25cf7e19aaf2e34473fe1b09 Mon Sep 17 00:00:00 2001 From: Abbas Egbeyemi Date: Tue, 22 Aug 2023 17:48:06 +0100 Subject: [PATCH 1/2] Remove tracef from logger interface --- internal/logger/logger.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 8c11b7d..5da321f 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -8,5 +8,4 @@ type Logger interface { Warnf(string, ...interface{}) Infof(string, ...interface{}) Debugf(string, ...interface{}) - Tracef(string, ...interface{}) } From 0957c8a6cee04e91ad665d77962c9320b7d74e9b Mon Sep 17 00:00:00 2001 From: Abbas Egbeyemi Date: Tue, 22 Aug 2023 17:49:37 +0100 Subject: [PATCH 2/2] Remove example references --- examples/logger/main.go | 2 -- logger.go | 3 --- 2 files changed, 5 deletions(-) diff --git a/examples/logger/main.go b/examples/logger/main.go index 8620e4c..1618e91 100644 --- a/examples/logger/main.go +++ b/examples/logger/main.go @@ -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{} diff --git a/logger.go b/logger.go index 8ac5843..34ef793 100644 --- a/logger.go +++ b/logger.go @@ -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{}) {}