func main()

in cmd/log-generator/log-generator.go [32:55]


func main() {
	flag.Parse()
	fmt.Printf("Start writing %d files, and each file has throughput %d Bytes/sec...\n",
		*fileNum, (*eventsPerSecond)*(*eventSize))

	if *outPutPath == "" {
		if runtime.GOOS == "windows" {
			*outPutPath = "C:\\tmp\\soakTest"
		} else {
			*outPutPath = "/tmp/soakTest"
		}
	}
	//Create log line string
	logEntry := ""
	for i := 0; i < *eventSize-1; i++ {
		logEntry += "A"
	}
	//Start generating log
	for i := 0; i < *fileNum; i++ {
		go writeLog(logEntry, i)
	}
	time.Sleep(*runTime)
	// No cleanup needed, just exit.
}