Generates dummy data and writes into a log file