Exemple #1
0
func TestMain(m *testing.M) {
	flag.Parse()
	logutil.InitLog("", true)
	os.Exit(m.Run())
}
Exemple #2
0
// depends on initStorage()
func (this *runner) initGlobalLogger() error {
	logutil.InitLog(path.Join(this.workingDirPath, "earthquake.log"), logutil.Debug)
	return nil
}