Search code examples
javaintellij-idealoggingintellij-plugin

IntelliJ Plugin: Duplicate all the command line output to file


I want to write a Jetbrains IntelliJ plugin which aims to duplicate all the command line output to some files with timestamp. Directly change the direction of System.out when coding is not I want, and the recording is executed passively by the plugin, so it's just a duplicate of command line information. Thus, how can I implement it?

For example, File_7891242885.log records "Hello World!" and other command line output when I executed the class at timestamp 7891242885.


Solution

  • I have solved it by the suggestion from @Karol Lewandowski. Suggestion from Karol Lewandowski