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

Related questions

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

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.