Friday, September 23, 2011

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?


xmlDoc = inboundMessage.XmlMessage;


"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.

No comments: