EdgexAgent/device-ble-go/vendor/github.com/spiffe/go-spiffe/v2/logger/null.go
2025-07-10 20:40:32 +08:00

13 lines
434 B
Go

package logger
// Null is a no-op logger. It is used to suppress logging and is the default
// logger for the library.
var Null Logger = nullLogger{}
type nullLogger struct{}
func (nullLogger) Debugf(format string, args ...interface{}) {}
func (nullLogger) Infof(format string, args ...interface{}) {}
func (nullLogger) Warnf(format string, args ...interface{}) {}
func (nullLogger) Errorf(format string, args ...interface{}) {}