aboutsummaryrefslogtreecommitdiffstats
path: root/vlog/vlog.go
blob: ea9e621fe3e295a166d5c2e54283ee75b7a97d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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...)
	}
}