mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
remove WithFields; add stereoscope logging
This commit is contained in:
@@ -23,7 +23,3 @@ func Debugf(format string, args ...interface{}) {
|
||||
func Debug(args ...interface{}) {
|
||||
Log.Debug(args...)
|
||||
}
|
||||
|
||||
func WithFields(fields map[string]interface{}) logger.Logger {
|
||||
return Log.WithFields(fields)
|
||||
}
|
||||
|
||||
+5
-8
@@ -1,12 +1,9 @@
|
||||
package log
|
||||
|
||||
import "github.com/anchore/imgbom/imgbom/logger"
|
||||
|
||||
type nopLogger struct{}
|
||||
|
||||
func (l *nopLogger) Errorf(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Infof(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Info(args ...interface{}) {}
|
||||
func (l *nopLogger) Debugf(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Debug(args ...interface{}) {}
|
||||
func (l *nopLogger) WithFields(fields map[string]interface{}) logger.Logger { return &nopLogger{} }
|
||||
func (l *nopLogger) Errorf(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Infof(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Info(args ...interface{}) {}
|
||||
func (l *nopLogger) Debugf(format string, args ...interface{}) {}
|
||||
func (l *nopLogger) Debug(args ...interface{}) {}
|
||||
|
||||
Reference in New Issue
Block a user