locked
Whats are the different ways to trace the synchronization using sync framework? RRS feed

  • General discussion

  • Whats are the different ways to trace the synchronization using sync framework?

    I know that SQL profiler is one option. Any other options ? 
    • Moved by Hengzhe Li Friday, April 22, 2011 2:08 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Saturday, August 1, 2009 7:43 AM

All replies

  • 	<system.diagnostics>
    		<switches>
    			<!--  0-off, 1-error, 2-warn, 3-info, 4-verbose. -->
    			<add name="SyncTracer" value="3" />
    		</switches>
    
    		<trace autoflush="true">
    			<listeners>
    				<add name="TestListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\temp\SyncLog.txt"/>
    			</listeners>
    		</trace>
    	</system.diagnostics>
    In your WCF server config file, you can get some detailed diagnostics by adding the above into your config file. Set 'SyncTracer' to an appropriate level ('4' is great for debugging)

    Monday, August 3, 2009 7:43 PM
  • Hi SunHunter, Thanks for your time!

    I tried this option, do we need to use SyncTracer listener defined above in code or it will automatically take care of logging?

    I guess I am using MS Sync services for Ado.NET 1.0, i.e. ( Microsoft.Synchronization.Data & Microsoft.Synchronization.Data.Server 1.0.0.0)

     

    I feel since SyncTracer class is part of MS Sync Services for Ado.Net 2.0 it's not working for me?

    I feel since SyncTracer class is part of MS Sync Services for Ado.Net 2.0 it's not working for me?

    Wednesday, August 5, 2009 3:45 PM
  • Please refer to MSDN doc for more information on how to trace Sync Services (V1/V2)

    http://msdn.microsoft.com/en-us/library/cc807160.aspx
    This posting is provided AS IS with no warranties, and confers no rights.
    Wednesday, August 5, 2009 7:33 PM
    Moderator
  • Worked perfectly for me. it comes with MSF 1.0 and Sync Services for ADO.NET 2.0

    Thanks a lot!
    Thursday, August 6, 2009 11:54 AM