コード例 #1
0
ファイル: fs_test.go プロジェクト: terminiter/earthquake
func TestMain(m *testing.M) {
	flag.Parse()
	logutil.InitLog("", true)
	os.Exit(m.Run())
}
コード例 #2
0
ファイル: run.go プロジェクト: terminiter/earthquake
// depends on initStorage()
func (this *runner) initGlobalLogger() error {
	logutil.InitLog(path.Join(this.workingDirPath, "earthquake.log"), logutil.Debug)
	return nil
}