I have console.log in my nightmarejs function and that function runs in an infinite loop. I want to output this console.log to a txt file, but my requirement is everytime it