mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 23:46:35 +01:00
add logging fields
This commit is contained in:
+6
-3
@@ -1,7 +1,10 @@
|
||||
package imgbom
|
||||
|
||||
import "github.com/anchore/imgbom/internal/logger"
|
||||
import (
|
||||
"github.com/anchore/imgbom/imgbom/logger"
|
||||
"github.com/anchore/imgbom/internal/log"
|
||||
)
|
||||
|
||||
func SetLogger(l logger.Logger) {
|
||||
logger.SetLogger(l)
|
||||
func SetLogger(logger logger.Logger) {
|
||||
log.Log = logger
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package logger
|
||||
|
||||
type Logger interface {
|
||||
Errorf(format string, args ...interface{})
|
||||
Infof(format string, args ...interface{})
|
||||
Info(args ...interface{})
|
||||
Debugf(format string, args ...interface{})
|
||||
Debug(args ...interface{})
|
||||
WithFields(map[string]interface{}) Logger
|
||||
}
|
||||
Reference in New Issue
Block a user