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?
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?
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:
Click on the edit configurations option. Now, Navigate to the Logs tab and redirect the output in the file as shown below.
Click on the Apply button. Now your application log would start coming in the file.
Hope this helps.