Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View deleted console output

I am running multiple Junit tests, running a test results in the console being cleared and populated with the log of the current test. Where will the log file containing the previous test logs be stored. Is there any way in eclipse, by which i can see such deleted logs.

like image 479
Unni Kris Avatar asked Jun 07 '12 09:06

Unni Kris


People also ask

How do I see console output?

Steps to Open the Console Log in Google ChromeClick on the "Console" tab which is to the right of "Elements". Now you can see the Console and any output that has been written to the Console log.

How do I view console history in eclipse?

Click Window > Preferences. Expand C/C++ and Build, then click Console. To display information on the latest build only, select the Always clear console before building check box. To open the Console view when a project is built, select the Open console when building check box.

How do I download the console output in Eclipse?

For that, go to Run → Debug Configurations on Eclipse menu. Then under Standard Input and Output section, click on checkbox next to File: , and choose the name of output file to use. If you check Append underneath, console output will be appended to the output file.


1 Answers

Try the following:

  • Open your Run configuration
  • Select the tab Common
  • In the Standard Input and Output group activate File and set a file
  • Select the Append Checkbox
  • Run your configuration

That way everything which is printed to the console will also be printed into that file.

like image 123
Kai Avatar answered Oct 02 '22 20:10

Kai