Copy console to text file

How can I copy a line from the console to a text file? By scripting would be preferable, but if there is a quick way to do it by hand I don’t mind.

I’m not sure how you’d single out a specific line (you could check with Contains, but the complete debug information is stored in a file called output_log.txt if you run the application in Debug mode.

Have a look at this answer to get some tips further.