Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tracing Sync Framework
Message
De
12/07/2017 13:24:03
 
 
À
Tous
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Titre:
Tracing Sync Framework
Divers
Thread ID:
01652635
Message ID:
01652635
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform