Use ETW to Trace messages inside an orchestration

I've been using the ETW framework heavily and it works great. Before i knew ETW i would use:

System.Diagnostics.Trace.Writeline("Message data: " + xmlDoc.OuterXml) which works geat.

I wanted to log the data using ETW, however i can not get it to work with ETW, anyone knows what the deal is?

CODE

xmlDoc = inboundMessage.XmlMessage;

Microsoft.BizTalk.CAT.BestPractices.Framework.Instrumentation.TraceManager.WorkflowComponent.TraceInfo(

"message data: {0}", xmlDoc.OuterXml

);

OUTPUT IN DEBUGVIEW: [11992] [1]1B4C.1638::09/23/2011-17:41:53.583 [Event]:ŽS?S

Note: when i use the old scool Trace it works as expected, so it's now the message/encoding BOM etc.

Comments

Popular posts from this blog

Azure implementation guidelines

Focus and innovation - recap of the last 2 years

Setting up a build server with the BizTalk Deployment Framework