aboutsummaryrefslogtreecommitdiffstats
path: root/vlog/vlog.go
blob: 9ef771c4660be1a4d8b486c8102bad0aeb4149be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// package vlog wraps log actions and only performs them if "verbose" config is set
package vlog

import (
	"snkt/config"
	"log"
)

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