Intellij Idea, how persist console output to file programmatically?
In newer IntelliJ editions, starting with ~ year 2020, the setting has again visually moved. In addition to answer from @ahmednabil88:
In Run/Debug Configurations
dialog: Modify options > Logs > Save console output to file
- Go to Run/Debug Configuration
- Click the "Logs" tab
- Check the "Save console output to file" box and select the output directory.
- Apply/OK
Source: https://www.jetbrains.com/help/idea/setting-log-options.html