aboutsummaryrefslogblamecommitdiffstats
path: root/vlog/vlog.go
blob: ea9e621fe3e295a166d5c2e54283ee75b7a97d05 (plain) (tree)
1
2
3
4
5
                                                                                                           


            
                                    








                                              
// vlog -- verbose logger -- wraps log functions and only performs them if "verbose" config setting is true
package vlog

import (
	"adammathes.com/snkt/config"
	"log"
)

func Printf(format string, v ...interface{}) {
	if config.Config.Verbose {
		log.Printf(format, v...)
	}
}