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 way you can get them is by redirecting them to an external text file,
How to redirect Eclipse console logs to 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:/Documents/eclipseLogs.log]
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.