Save console.log files to a txt

Somebody asked a similar question here: How to log console to files & console with timestamps?