github.phpd.cn/hashicorp/packer@v1.3.2/builder/oracle/classic/log.go (about)

     1  package classic
     2  
     3  import "log"
     4  
     5  type Logger struct {
     6  	Enabled bool
     7  }
     8  
     9  func (l *Logger) Log(input ...interface{}) {
    10  	if !l.Enabled {
    11  		return
    12  	}
    13  	log.Println(input...)
    14  }