Monday, June 27, 2011

Tracing in WCF: Understanding basic steps

Theory behind WCF Tracing is not an exception of classical definition of Tracing. Through Tracing an application provides information about itself. Information may vary from internal state of object to passed input parameter to method. This information should be logged, persisted or saved somewhere.
WCF Tracing can be used for the instrumentation of the WCF Service.

There are essentially four steps involved in WCF Tracing

image_thumb117.png?w=519&h=309

Emitting Trace information from Service
To emit trace information WCF provides different sources. However you have choice to create trace source using TraceSource class as well. You can choose any of WCF Assembly level trace source to emit the tracing information.
WCF Assembly level Trace Sources are as below,

    System.ServiceModel
    System.ServiceModel.MessageLogging
    System.ServiceModel.IdentityModel
    System.ServiceModel.Activation
    System.Runtime.Serilization
    System.IO.Log

Read more: DEBUG MODE……