Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracing Sync Framework
Message
From
12/07/2017 13:24:03
 
 
To
All
General information
Forum:
C#
Category:
Coding, syntax and commands
Title:
Tracing Sync Framework
Miscellaneous
Thread ID:
01652635
Message ID:
01652635
Views:
42
Can someone better versed in C# and MS documentation assist me with understanding what coding I need in order to trace MS Synchronization Framework?

This is the site with the documentation:

https://msdn.microsoft.com/en-us/library/cc807160.aspx

I understand I need to add the following (or similar) to my sync app's config file:
	<system.diagnostics>
		<switches>
			<!--  0-off, 1-error, 2-warn, 3-info, 4-verbose. -->
			<add name="SyncTracer" value="4" />
		</switches>

		<trace autoflush="true">
			<listeners>
				<add name="TestListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\temp\SyncLog.txt"/>
			</listeners>
		</trace>
	</system.diagnostics>
Now, what do I need to do in my code to make the trace actually write information to the text file I specified?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Next
Reply
Map
View

Click here to load this message in the networking platform