remove WithFields; add stereoscope logging

This commit is contained in:
Alex Goodman
2020-05-23 19:22:52 -04:00
parent 51c972ad33
commit 1b9effeb49
10 changed files with 49 additions and 69 deletions
+4 -1
View File
@@ -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() {