func main()

in anthos-multi-cloud/customize-logs-fluentbit/test-logger/logger.go [63:71]


func main() {
	rand.Seed(time.Now().UTC().UnixNano())
	// Take the log interval and logging header from the environment
	logInterval := convertToInt(os.Getenv("LOG_INTERVAL"), 2)
	header := os.Getenv("HEADER")
	whenToStart := rand.Intn(10)
	time.Sleep(time.Duration(whenToStart) * time.Second)
	startLogEvents(logInterval, header)
}