From 490c7dd59980e0869aef2d2dda15ee2893110681 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Mon, 24 Jun 2024 11:11:35 +0200 Subject: [PATCH] Add Tracef to logger Interface Signed-off-by: Evan Lezar --- internal/logger/api.go | 1 + internal/logger/lib.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/internal/logger/api.go b/internal/logger/api.go index b8db9766..750c64c6 100644 --- a/internal/logger/api.go +++ b/internal/logger/api.go @@ -24,4 +24,5 @@ type Interface interface { Infof(string, ...interface{}) Warning(...interface{}) Warningf(string, ...interface{}) + Tracef(string, ...interface{}) } diff --git a/internal/logger/lib.go b/internal/logger/lib.go index 300e925f..ddb227bf 100644 --- a/internal/logger/lib.go +++ b/internal/logger/lib.go @@ -45,3 +45,6 @@ func (l *NullLogger) Warning(...interface{}) {} // Warningf is a no-op for the null logger func (l *NullLogger) Warningf(string, ...interface{}) {} + +// Tracef is a no-op for the null logger +func (l *NullLogger) Tracef(string, ...interface{}) {}