Wednesday, March 7, 2012

Write Biztalk error message in event log

FaultMsg is a message

System.Diagnostics.EventLog.WriteEntry("Error - ProductMember Business Service", System.String.Format("GetMemberProducts Opertaion : GenericServiceFault occurred - FaultID:{0}, Message:
{1}", FaultMsg.detail.FaultId, FaultMsg.detail.Message), System.Diagnostics.EventLogEntryType.Error);

No comments:

Post a Comment