What is the concept of tracelevel in trace listeners?

 Posted by articlesMaint on 9/15/2009 | Category: WCF Interview questions | Views: 3522

In the previous question we have specified switch value as information. This value indicates what type and level of tracing information you want to record. Below is the list of the same.

Trace Level



Ignore all trace messages


Log unexpected processing events or unhandled exceptions have occurred. The application will terminate immediately or shortly.


An unexpected processing event or exception has occurred. The application is still capable of continuing its processing.


Indicates there is a possible problem but the application will continue running.


Application is running smoothly only that informative message is recorded. In this case messages are just milestones.


Very similar to information but provides more details as compared.


In this case messages are related to communication between components and the activities.


In this case all messages are captured.
Trace level value is specified in ‘source’ tag in switch value. For instance the below ‘web.config’ snippet indicates the trace type as ‘Information’.


<source name="System.ServiceModel"
switchValue="Information, ActivityTracing">

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response