How to redirect console view output to a text file in Eclipse?
Run -> Run Configurations... -> Java Application -> Your Application -> Common tab -> File Check Append for append mode.
Run -> Run Configurations... -> Java Application -> Your Application -> Common tab -> File
Check Append for append mode.