Tuesday, September 05, 2006

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:

Anonymous Anonymous said...

Thank You for the tip. It saved my day.

9:20 AM  
Anonymous ntotomanov said...

Thank you very much :)
It was really helpful !!

3:10 AM  
Anonymous andreas said...

exactly what i was looking for, thanks a lot.

2:13 AM  
Blogger Satyajeet Kumar said...

thanx a lot....i was looking for it since yesterday.

10:11 AM  
Blogger Pavan Kumar Benkal said...

Thanks.It helped me a lot

4:21 AM  
Anonymous Anonymous said...

This is a nice tip.. Please provide more eclipse tips. and link that to twitter.

Thanks man
Mat

12:48 PM  
Anonymous Anonymous said...

thanks it helped me

5:43 PM  
Anonymous Anonymous said...

This worked. Great!

5:46 AM  
Blogger Unknown said...

what to do if I have more than one console and I want to save a particular console

2:56 AM  
Anonymous Anonymous said...

Thanks!!!

7:35 AM  
Anonymous Anonymous said...

Thanks a lot..

8:40 AM  
Blogger Unknown said...

Thank you. You saved my three days.

7:05 AM  
Anonymous Anonymous said...

Thanks. very useful.

10:43 AM  
Blogger Ravi said...

Thanks!

8:52 PM  
Blogger Neha Joshi said...

Thnks a lot... First time i got the thing what i wanted in the first search.. saved my day :D

1:16 AM  
Anonymous Anonymous said...

Thanks! Always nice when years old blogposts are stil useful!!

2:45 AM  
Anonymous Anonymous said...

++

11:14 AM  
Anonymous Anonymous said...

YOU ARE AWESOME!!!

5:21 PM  
Anonymous Anonymous said...

thanks a lot...it was really helpful

3:59 PM  
Anonymous Anonymous said...

this is cool........

4:52 AM  
Anonymous Anonymous said...

This tip is AWESOME!!!

5:08 AM  
Anonymous Anonymous said...

mmmmmhaaaaa

3:47 AM  
Anonymous Anonymous said...

Thanks a lot!!
I was getting crazy ;) but this was really helpful.

6:25 AM  
Anonymous Anonymous said...

thank you!

3:17 AM  
Anonymous Anonymous said...

Thanks for saving my day :) cheers

5:11 AM  
Anonymous Anonymous said...

Thank you for the tip. It was really helpful.

2:28 AM  
Anonymous Anonymous said...

Is there a way to do this using arguments on the executable file?
Like running "C:\myapp.exe -debug"
Thanks!

8:14 AM  
Anonymous Anonymous said...

thanks !

6:38 AM  
Anonymous Anonymous said...

Thanks a lot. It was really helpful.

Subhadeep Gupta, IIT Bombay

5:00 AM  
Blogger Arsh said...

Thanks Rakesh.. Really helpful

6:36 AM  
Blogger wm5109 said...

Stumbled on this from Google, and it's wonderfully helpful. Thanks!

1:56 PM  
Anonymous Anonymous said...

thanks man..gr8 tip

12:08 AM  
Anonymous Anonymous said...

thanks!

1:21 PM  
Anonymous Anonymous said...

thanx @ lot man..

12:58 AM  
Anonymous Anonymous said...

Awesome, great article, helped me a lot!

5:44 AM  
Anonymous Anonymous said...

how to use a file as input argument [java test < in.txt]

12:50 AM  
Anonymous Anonymous said...

Even in 2012, your post still helps. :)

10:52 AM  
Anonymous Anonymous said...

TKS

10:36 AM  
Blogger Unknown said...

Thanks!

This was way way hidden for me :-)

3:29 AM  
Anonymous Betharaj said...

Really Super...Thanks a lot...

3:17 AM  
Blogger rajagopal said...

great one....nice!!!!!

1:37 AM  
Anonymous Anonymous said...

u missed to mention how to get into commons tab...run-->run configurations--->commons--->specify file

7:13 AM  
Anonymous Anonymous said...

Awesome............................. Thanks :)

4:24 PM  
Blogger Sundaram Tiwari said...

Thanks :)

10:57 PM  
Anonymous Amir Noel said...

Thank you :). Very Helpful post.

10:14 AM  
Anonymous Anonymous said...

Thank you... This information is very helpful.

7:07 AM  
Anonymous kumar said...

How to save the file with time in file name....??????

7:28 AM  
Anonymous Anonymous said...

thanks it helped.

6:49 AM  

Post a Comment

<< Home