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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With