Much kudos to Will Sargent over at “Terse Systems”:http://tersesystems.com/ for pointing out an eclipse plugin called “Ganymede”:http://sourceforge.net/projects/ganymede/, which captures “Log4J(Log4J Project Homepage)”:http://jakarta.apache.org/log4j/docs/index.html messages inside eclipse itself.
_Updated 11:51am_: Well, from the screen shot and descriptions at Terse Systems, it looked good. However I have been completely unable to find ANY documentation on how to actually install and run the thing! The downloadable packages come with no readme files, the homepage is a directory listing, and the only readme to be found on the sourceforge site was useless. It might be the greatest project in the world but if no-one knows how to use it, whats the point?
8 Responses to “Ganymede – Log4J Logging inside eclipse”
Okay.
Unzip the ganymede stuff under /eclipse/plugins.
Start up Eclipse.
When you run Eclipse, go to Windows, Preferences. There’ll be a menu item there called Ganymede.
Ganymede stupidly doesn’t come with any columns set up, so add them all.
Save your settings.
Go to Window, Show View, then Other…
The Ganymede Log4J viewer is at the bottom, under Other. Click on that and then finally…
Click on the “Start Log4J Server” button before you start any logging.
Thanks Will, will give this a go now…
Hello,
I followed the above instructions to setup the Log4J. When I try to start it, I got Unable to create part: Gnaymede Log4j View. Please advice.
Thanks,
Davy
Sounds like a problem with Eclipse – which version are you using?
I’m far from an expert with Ganymede in anycase – you might want to try talking to the developers directly
Hi
I have setup my Eclipse as suggested in this thread. I can see the Ganymede Log4j viewer in my Eclipse and I have turned on the server. But when my app performs logging, nothing shows in the viewer.
What am I doing wrong? Maybe my appender isn’t setup correctly. Can somebody post their log4j.xml? Here is my appender…
Yikes! Your appender vanished as I don’t allow html eta al. Anyway, here is mine with ‘[‘ and ‘]’ used instead of angle brackets:
First, setup the socket appender:
[appender name=”SocketAppender” class=”org.apache.log4j.net.SocketAppender”]
[param name=”RemoteHost” value=”localhost”/]
[param name=”Port” value=”4445″/]
[param name=”LocationInfo” value=”true”/]
[/appender]
Then make sure your appender is attached to the right categroy. To get all messages going to the socket appender, attach the SocketAppender to the root category like this:
[root]
[appender-ref ref=”SocketAppender”/]
[/root]
Or to restrict it to a certain package:
[category name=”org.apache”]
[appender-ref ref=”SocketAppender”/]
[/category]
You might want to try attaching a normal console looger – this will at least make sure you are getting log messages at all.
I just got this to work, and it appears to work quite nicely.
Questions:
* Can I remove this from the Console tab view? A fast view is not good enough?
* Is it possible at all to link to the source line? The information is clearly there 🙂
Thanks
I’m not sure what you mean by a ‘fast’ view. As for linking to the source line, thats really down to the coders of the plugin – you might want to talk to them directly.
Comments are closed.