I printed lots of logging messages to the console in Eclipse (Java), but accidentally closed Eclipse. Is there any way to access the text I printed to Eclipse's console?
Try something like this It will store the console output to a text file
PrintStream out = new PrintStream(new FileOutputStream("consoleOutput.txt"));
System.setOut(out);
No, that's not possible. But you can write the console output to a file additionally in the future. Just open your run configuration switch to the Common tab and tick "File".
Also you can let eclipse ask you if you really want to close it: Window -> Preferences -> General -> Startup and Shutdown -> Confirm exit when closing last window
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.