Export console println as text

Is there an option to export the console output as a txt or something?
I need to println more than 10k lines, but it only shows the last few dozens

3 Likes