Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317813

Summary: [tcf] Add Discovery tracing in Java reference implementation
Product: [Tools] TCF Reporter: John Cortell <john.cortell>
Component: CoreAssignee: Project Inbox <dsdp.tm.tcf-inbox>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, eugene
Version: unspecified   
Target Milestone: 0.4.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Solution
john.cortell: iplog-
Sample trace output
none
Updated solution
john.cortell: iplog-
Updated solution john.cortell: iplog+

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