Skip to Content
author's profile photo Former Member
Former Member

Logging and Tracing in Studio

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>

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Posted on Mar 12, 2004 at 02:10 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 12, 2004 at 02:26 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Andreas,

      the poitn is that currently this is not available. Also your issue could be an error, as this is still in beta and the monitoring and logging stuff is obe of the youngest parts in the software.

      Regards,

      Benny

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2004 at 03:26 PM

    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 comment
    10|10000 characters needed characters exceeded