mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
17 lines
333 B
Go
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,
|
|
})
|
|
}
|