syft/imgbom/log.go
2020-05-21 16:53:17 -04:00

17 lines
333 B
Go

package imgbom
import (
"github.com/anchore/imgbom/imgbom/logger"
"github.com/anchore/imgbom/internal/log"
)
func SetLogger(logger logger.Logger) {
log.Log = logger
}
func SetLoggerWithTags(logger logger.Logger, tags map[string]interface{}) {
log.Log = logger.WithFields(map[string]interface{}{
"source": LibraryName,
})
}