syft/internal/log/log.go
2020-05-21 15:54:54 -04:00

30 lines
553 B
Go

package log
import "github.com/anchore/imgbom/imgbom/logger"
var Log logger.Logger = &nopLogger{}
func Errorf(format string, args ...interface{}) {
Log.Errorf(format, args...)
}
func Infof(format string, args ...interface{}) {
Log.Infof(format, args...)
}
func Info(args ...interface{}) {
Log.Info(args...)
}
func Debugf(format string, args ...interface{}) {
Log.Debugf(format, args...)
}
func Debug(args ...interface{}) {
Log.Debug(args...)
}
func WithFields(fields map[string]interface{}) logger.Logger {
return Log.WithFields(fields)
}