Output log data to log.txt