How to redirect console output to text file in intelliJ

Viewed 1362

i wanted to redirect console output to a text file as in eclipse we can redirect it to some text file can we also do it in inteeliJ?

1 Answers

Yes, it is possible to do this. When you run the main class in IDE, there will be an option for edit configurations something like the image below:

Edit configurations

Click on the edit configurations option. Now, Navigate to the Logs tab and redirect the output in the file as shown below.

save-log-file

Click on the Apply button. Now your application log would start coming in the file.

Hope this helps.

Related