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.
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
Post a Comment