Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracing Sync Framework
Message
From
13/07/2017 03:10:59
 
 
To
12/07/2017 13:24:03
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01652635
Message ID:
01652642
Views:
41
>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?

Just Trace.TraceInformation : https://msdn.microsoft.com/en-us/library/system.diagnostics.trace.traceinformation(v=vs.110).aspx

That should output to all registered listeners....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform