[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: How to collect log records?

Hi Clemens,

Is your application logging Common Base Events? I'm not an expert on logging but I know there are basically two ways to do it - (1) you can just write the log to a file and then import it and view it in the log view via the import log file wizard, or (2) register a logging agent that you can attach to and get log records in real-time as they're being logged.

If you're using a logging agent, you have to explicitly attach to the agent to listen in on it. Before you do this, you have to turn on the option to use logging agents in the UI. This is done in the Profiling and Logging top-level preference page. Then, once your application is running and the logging agent is up and running, you attach to it by opening the profiling launch configuration dialog via the "Profile..." toolbar button, and creating a new Attach - Java Process launch configuration. Then in the agents tab, you should see your agent appear. Select it, and you should see the log in the log navigator view in the Profiling and Logging perspective with a special icon showing that it is a live log.

Thanks,
Curt

Fuchs Clemens wrote:

Hi,

I'm profiling a local application, which outputs a lot of logs, but I can't see any of them in the log view. Do I have to adapt the logging.properties for my application? If yes, how?

thanks,
Clemens