BizTalk CAT

The BizTalk CAT Instrumentation Framework is a high performance tracing/logging framework for BizTalk that builds upon the Event Tracing for Windows (ETW) infrastructure. The Controller is designed for use both on development machines and production servers. Compared to System.Diagnostic.Trace, Enterprise Library Tracing or Log4Net, CAT has a negligible impact on performance. To use the BizTalk CAT Framework first install the BizTalk CAT Instrumentation Framework Controller. Use the following link on CodePlex. The BizTalk CAT Instrumentation Framework Controller is an easy-to-use GUI which you can use to start and stop a trace, adjust filter options, log to a file and/or enable real-time tracing to DebugView. To use CAT in orchestrations:
  • Add a reference to Microsoft.BizTalk.CAT.BestPractices.Framework.dll.
  • Next add a variable callToken of type System.Guid.
Add an expression shape StartTrace after the initial Receive: callToken = Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceIn(); Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceInfo(“Start [BizTalk OrchestrationName]”); Now at various locations in your orchestration you can add Trace expression shapes: Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceInfo(“Kw1c.BizTalk.Xedule voldoet aan het filter”); You can also use String.Format like behavior: Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceInfo(“Kw1c.BizTalk.Xedule SoapFault: {0}”, strSoapFault); or: msg = MsgUpdateGroep_Output.parameters; Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceInfo(“Kw1c.BizTalk.Xedule.Groep UpdateGroep Response: {0}”, msg.OuterXml);