示例#1
0
文件: log_test.go 项目: stojg/log
func TestDebugFEnabled(t *testing.T) {
	log.ShowDebug = true
	log.Debugf("debugf: %s", "should show")
	log.ShowDebug = false
}
示例#2
0
文件: log_test.go 项目: stojg/log
func TestDebugF(t *testing.T) {
	log.Debugf("debugf: %s", "should not show")
	log.ShowDebug = false
}