Codebase list golang-blitiri-go-log / debian/0.0+git20170910.0.2b2e1b6-1 example_test.go
debian/0.0+git20170910.0.2b2e1b6-1

Tree @debian/0.0+git20170910.0.2b2e1b6-1 (Download .tar.gz)

example_test.go @debian/0.0+git20170910.0.2b2e1b6-1raw · history · blame

package log_test

import "blitiri.com.ar/go/log"

func Example() {
	log.Init() // only needed once.

	log.Debugf("debugging information: %v %v %v", 1, 2, 3)
	log.Infof("something normal happened")
	log.Errorf("something bad happened")

	if log.V(3) { // only entered if -v was >= 3.
		//expensiveDebugging()
	}

	// Output:
}