aboutsummaryrefslogtreecommitdiffstats
path: root/vlog/vlog.go
blob: abc1db9de144de83210e163d75ecb772028c1bab (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"
	"fmt"
)

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