How to Save Eclipse console logs in external log file

While debugging an application in Eclipse you might have noticed that important logs are lost from the console as its buffer size is reached. One of the ways you can get them is by redirecting them to an external text file,

  • How to redirect Eclipse console logs to an external file
  • 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.
  • You would notice that console logs are redirected to the external file as stated in the first console line : [Console output redirected to file:/Users/code2care/Desktop/eclipseLogs.log]
  • Redirect Eclipse Console Logs to external file
    Redirect Eclipse Console Logs to external file

    Try Out Code2care Dev Tools:


    Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

    Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

    🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

    We strongly support Gender Equality & Diversity.