Output IntelliJ IDEA logs to a local file
Note: This article was written a while ago and may contain outdated information.
Please verify the details before relying on it. If I express opinions or recommendations, they might not reflect my current views.
For this reason, I recommend checking for more recent articles on the same topic.
If you want to store logs of a Gradle run to a file, just add the filepath (including the name) via the UI.
For this you need to follow these options:
RUN -> Edit configurations -> Application -> Save console output to file...
This file is overwritten on every rerun.