Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving Eclipse console history

Tags:

eclipse

Is there any way I can retrieve the Ecipse console log history? Whenever I run the program, does Eclipse create a log file and store somewhere? I have seen that we can manually create an outuput file, but what if I have not created one yet? Does Eclipse store somewhere by default?

like image 615
Yogesh Ghimire Avatar asked Jun 15 '16 20:06

Yogesh Ghimire


People also ask

How do I download the console log in Eclipse?

Go-to Eclipse Menu: Run -> Run Configuration. Go-to Common tab. Under Standard Input and Output: Select Output file checkbox, enter log file name and path where you want logs to be redirected. Apply changes and run your application.


1 Answers

No, Eclipse doesn't store it by default. There are two options to enable this:

The first method is to tell Eclipse to save console output to a file. 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. Otherwise, console output will be overwritten to the file.

The other way is to use explicit file logging from your application and store it anywhere you want.

like image 153
rfkortekaas Avatar answered Nov 16 '22 04:11

rfkortekaas