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)
-
Archives
- November 2009 (1)
- September 2009 (1)
- August 2009 (2)
- July 2009 (2)
- June 2009 (1)
- April 2009 (2)
- March 2009 (2)
- February 2009 (1)
- January 2009 (1)
- September 2008 (3)
- August 2008 (4)
-
Categories
-
RSS
Entries RSS
Comments RSS


