mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
remove WithFields; add stereoscope logging
This commit is contained in:
+4
-1
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/anchore/imgbom/internal/format"
|
||||
"github.com/anchore/imgbom/internal/log"
|
||||
"github.com/anchore/imgbom/internal/logger"
|
||||
"github.com/anchore/stereoscope"
|
||||
"github.com/spf13/viper"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
@@ -33,7 +34,9 @@ func initLogging() {
|
||||
FileLocation: appConfig.Log.FileLocation,
|
||||
}
|
||||
|
||||
imgbom.SetLogger(logger.NewZapLogger(config))
|
||||
appLogger := logger.NewZapLogger(config)
|
||||
imgbom.SetLogger(appLogger)
|
||||
stereoscope.SetLogger(appLogger)
|
||||
}
|
||||
|
||||
func logAppConfig() {
|
||||
|
||||
Reference in New Issue
Block a user