Is there any way to display logging output of deployed
applications (Sneak Preview II) in the Studio environment ?
A short comment on the tutorial for logging and tracing:
<i>static final Location loc = Location.getLocation(this.getClass())</i>
This will not compile because the this reference <b>is not available</b> in a static context ! One should use
<i>Foo.class</i>
You need to configure login for your application by making a log-configuration.xml file by rightclicking on the EAR project.
For the rest, please check manuals.
The question was rather, if it is possible to display
the trace output <b>within</b> studio, e.g. in a Console View.
Another point is a problem with the log configuration within an EAR. It seems to me, that after deploying the app, the reference between a Location and a Destiniation gets lost. It works for anonymous ConsoleLog destionations, but not for named destinations.
I managed to configure everything correctly and see the output for a Category with named destinations. Is there a known issue ?
Andreas
For displaying the trace output in the Studio environment, one can use Eclipse Tail which is an Eclipse Plug-in hosted on Sourceforge.
http://eclipsetail.sourceforge.net
It basically works like the unix tail command and can be used to display any log output written to a file.
Regards,
Andreas
Add a comment