Trace Type Summary

 

Source Levels defines various trace levels: Critical, Error, Warning, Information, and Verbose, as well as provides description of the ActivityTracing flag, which toggles the output of trace boundary and activity transfer events.

You can also review TraceEventType for the types of traces which can be emitted from System.Diagnostics.

The following table lists the most important ones.

Trace TypeDescription
CriticalFatal error or application crash.
ErrorRecoverable error.
WarningInformational message.
InformationNon-critical problem.
VerboseDebugging trace.
StartStarting of a logical unit of processing.
SuspendSuspension of a logical unit of processing.
ResumeResumption of a logical unit of processing.
StopStopping of a logical unit of processing.
TransferChanging of correlation identity.

An activity is defined as a combination of the trace types above.

The following is a regular expression that defines an ideal activity in a local (trace source) scope,

R = Start (Critical | Error | Warning | Information | Verbose | Transfer | (Transfer Suspend Transfer Resume) )* Stop

This means that an activity must satisfy the following conditions.

  • It must start and stop respectively by a Start and Stop traces

  • It must have a Transfer trace immediately preceding a Suspend or Resume trace

  • It must not have any traces between the Suspend and Resume traces if such traces exist

  • It can have any and as many of critical/Error/Warning/Information/Verbose/Transfer traces as long as the previous conditions are observed

The following is a regular expression that defines an ideal activity in the global scope,

R+   

with R being the regular expression for an activity in the local scope. This translates to,

[R+ = Start ( Critical | Error | Warning | Information | Verbose | Transfer | (Transfer Suspend Transfer Resume) )* Stop]+  

Show: