I want to write a Jetbrains IntelliJ plugin which aims to duplicate all the terminal 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 terminal information. Thus, how can I implement it?
File_7891242885.log records "Hello World!" and other terminal output when I executed the class at timestamp 7891242885.