Redirecting eclipse console output to log file

There is a way to redirect the console text into a log/text file under eclipse. If you are running a web-based application, possibility is that you already have a .log file configured some where. You can simply open this log file and look for messages.

In case of pure java application however, most of the output is showin in the eclipse console unless you configure a redirect.

Open the "Run Configurations" dialogue box by pulling up the "Run" button or by right clicking on your project/class file and then going to "Run Configurations". On the right hand side of the dialogue box, select the "Common" tab. Check the"File" checkbox and mention a physical path+filename in the input textbox. You are all set! Open the specified file in your fav text editor. 

Comments

Popular posts from this blog

JMeter – Working with JSON

How to create an XML Log file in Java using JAXB (Customized)

Existence: Absolute & Relative