In Eclipse it's possible to redirect console output to a log file using the method outlined here.
Is there a similar feature in IntelliJ IDEA?
Save console output to a fileIn the run/debug configuration that will be used for launching the app, click Modify options. From the menu, select Save console output to file. Specify the path to the file.
The first method is to tell Eclipse to save console output to a file. For that, go to Run → Debug Configurations on Eclipse menu. Then under Standard Input and Output section, click on checkbox next to File: , and choose the name of output file to use.
UPDATE: this feature is available in IDEA 11.
Not possible in IDEA at the moment, I've submitted a new feature request. Feel free to vote.
A workaround could be implemented using wrapper class with main() method which will redirect stdout and stderr to files and then run the main class of your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With