Biz(Talk)2

Talk, talk and more talk about BizTalk

Writing to the event log from a BizTalk Orchestration

Some pointers when utilising DebugView to view debug output from your Orchestration:

  • Make sure you write to System.Diagnostics.Trace, rather than System.Diagnostics.Debug
    This ensures that the trace statements will not be compiled out of non-debug builds (unless of course, this is what you want to do!)
  • Use a static method on a helper class to provide a wrapper function.  This also makes it easier to provide different levels of debug messages, eg. Debug, Information, Warning, Error
  • Finally, ensure the “Capture Global Win32″ flag is set in DebugView.  Without this, you’ll be scratching your head wondering where the messages have gone (speaking from experience)

September 18, 2009 Posted by Brett | BizTalk | | No Comments Yet