github.com/goonzoid/gcli@v0.2.3-0.20150926213610-155587606ea1/skeleton/log.go (about)

     1  package skeleton
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  // Debugf outputs debug infomation
     8  func (s *Skeleton) Debugf(format string, args ...interface{}) {
     9  	if s.Verbose {
    10  		fmt.Fprintf(s.LogWriter, "[DEBUG] "+format+"\n", args...)
    11  	}
    12  }