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.
Pull up the "Debug" or "Run" dialogs where you configured your main class. Select the java application you want to run. If you dont have an entry under "java applications", you might have to create one. On the right hand side of the screen, 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.
48 Comments:
Thank You for the tip. It saved my day.
Thank you very much :)
It was really helpful !!
exactly what i was looking for, thanks a lot.
thanx a lot....i was looking for it since yesterday.
Thanks.It helped me a lot
This is a nice tip.. Please provide more eclipse tips. and link that to twitter.
Thanks man
Mat
thanks it helped me
This worked. Great!
what to do if I have more than one console and I want to save a particular console
Thanks!!!
Thanks a lot..
Thank you. You saved my three days.
Thanks. very useful.
Thanks!
Thnks a lot... First time i got the thing what i wanted in the first search.. saved my day :D
Thanks! Always nice when years old blogposts are stil useful!!
++
YOU ARE AWESOME!!!
thanks a lot...it was really helpful
this is cool........
This tip is AWESOME!!!
mmmmmhaaaaa
Thanks a lot!!
I was getting crazy ;) but this was really helpful.
thank you!
Thanks for saving my day :) cheers
Thank you for the tip. It was really helpful.
Is there a way to do this using arguments on the executable file?
Like running "C:\myapp.exe -debug"
Thanks!
thanks !
Thanks a lot. It was really helpful.
Subhadeep Gupta, IIT Bombay
Thanks Rakesh.. Really helpful
Stumbled on this from Google, and it's wonderfully helpful. Thanks!
thanks man..gr8 tip
thanks!
thanx @ lot man..
Awesome, great article, helped me a lot!
how to use a file as input argument [java test < in.txt]
Even in 2012, your post still helps. :)
TKS
Thanks!
This was way way hidden for me :-)
Really Super...Thanks a lot...
great one....nice!!!!!
u missed to mention how to get into commons tab...run-->run configurations--->commons--->specify file
Awesome............................. Thanks :)
Thanks :)
Thank you :). Very Helpful post.
Thank you... This information is very helpful.
How to save the file with time in file name....??????
thanks it helped.
Post a Comment
<< Home