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 | BizTalk |

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: