Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317813 - [tcf] Add Discovery tracing in Java reference implementation
Summary: [tcf] Add Discovery tracing in Java reference implementation
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.4.0   Edit
Assignee: Project Inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 09:11 EDT by John Cortell CLA
Modified: 2013-06-05 07:56 EDT (History)
2 users (show)

See Also:


Attachments
Solution (13.97 KB, patch)
2010-06-24 09:13 EDT, John Cortell CLA
john.cortell: iplog-
Details | Diff
Sample trace output (5.45 KB, text/plain)
2010-06-24 09:14 EDT, John Cortell CLA
no flags Details
Updated solution (14.75 KB, patch)
2010-06-24 11:03 EDT, John Cortell CLA
john.cortell: iplog-
Details | Diff
Updated solution (14.75 KB, patch)
2010-06-25 08:00 EDT, John Cortell CLA
john.cortell: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Cortell CLA 2010-06-24 09:11:59 EDT
Having a real-time view into the TCF discovery mechanism is extremely helpful not only in gaining an understanding of how the mechanism works, but in troubleshooting it. This patch introduces tracing for the Java reference implementation that can be turned on with a Java property.

Define

   org.eclipse.tm.tcf.core.tracing.discovery

to turn tracing on.

By default, tracing uses the TCF logger facility. The logger in an Eclipse based agent writes to the Eclipse Error Log, which is not ideal for tracing large amounts of data. The logger for such an Eclipse based agent can now be redirected to stdout by defining

   org.eclipse.tm.tcf.core.logToStdout
Comment 1 John Cortell CLA 2010-06-24 09:13:41 EDT
Created attachment 172601 [details]
Solution
Comment 2 John Cortell CLA 2010-06-24 09:14:46 EDT
Created attachment 172602 [details]
Sample trace output
Comment 3 John Cortell CLA 2010-06-24 11:03:25 EDT
Created attachment 172620 [details]
Updated solution

This patch allows Eclipse based plugins to enable tracing via the standard Eclipse tracing mechanism
Comment 4 John Cortell CLA 2010-06-24 11:08:29 EDT
Last comment should read:

This patch allows Eclipse-based TCF agents to enable tracing via the standard
Eclipse tracing mechanism
Comment 5 John Cortell CLA 2010-06-25 08:00:49 EDT
Created attachment 172737 [details]
Updated solution

LocatorService.java changed on HEAD. Updated patch.
Comment 6 Eugene Tarassov CLA 2010-06-25 15:26:51 EDT
I have committed the patch.
Thanks!
Comment 7 Doug Schaefer CLA 2011-05-17 10:49:02 EDT
Moving bugs to new home for IP log.
Comment 8 Martin Oberhuber CLA 2013-06-05 06:26:25 EDT
Bulk change: Marking all bugs from the TM era (until June 2011) target 0.3