aboutsummaryrefslogblamecommitdiffstats
path: root/vlog/vlog.go
blob: ab48478d099ae4c8f3a232fac08d94e95db62a42 (plain) (tree)
























                                                                                    
// vlog -- verbose logger -- wraps log functions and only performs them if "verbose"
package vlog

import (
	"fmt"
)

var VERBOSE bool

func init() {
	VERBOSE=false
}

func Printf(format string, v ...interface{}) {
	if VERBOSE {
		fmt.Printf(format, v...)
	}
}

func Println(v ...interface{}) {
	if VERBOSE {
		fmt.Println(v...)
	}
}