title: Intellij Idea, how persist console output to file programmatically?
body: <p>Is there a way to tell IntelliJ where to store the output info by coding?<br />
  I'm making a plugin and don't know how to save the output, because I need the local path for it.</p>