Skip to content

Commit

Permalink
Add Tracef to logger Interface
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <elezar@nvidia.com>
  • Loading branch information
elezar committed Jun 24, 2024
1 parent 8c44674 commit 19e9fcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/logger/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ type Interface interface {
Infof(string, ...interface{})
Warning(...interface{})
Warningf(string, ...interface{})
Tracef(string, ...interface{})
}
3 changes: 3 additions & 0 deletions internal/logger/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {}

0 comments on commit 19e9fcd

Please sign in to comment.