github.com/openshift/installer@v1.4.17/pkg/terraform/logger.go (about) 1 package terraform 2 3 import ( 4 "github.com/sirupsen/logrus" 5 ) 6 7 type printfer struct { 8 logger *logrus.Logger 9 level logrus.Level 10 } 11 12 func (t *printfer) Printf(format string, v ...interface{}) { 13 t.logger.Logf(t.level, format, v...) 14 } 15 16 func newPrintfer() *printfer { 17 return &printfer{ 18 logger: logrus.StandardLogger(), 19 level: logrus.DebugLevel, 20 } 21 }