我正在尝试处理错误并使用 Scope 将它们放入日志中。这是我使用的编排,
Expression_1 有
System.Diagnostics.EventLog.WriteEntry("消息发送到目的地", "消息发送到目的地");
Expression_2 有
System.Diagnostics.EventLog.WriteEntry("Failed to send the message to destination", "Failed to send the message to destination --" + exception.ToString() );
Expression_3 有
System.Diagnostics.EventLog.WriteEntry("General Exception-- Failed to send the message to destination", "Caught GeneralException-- Failed to send the message to destination");
当消息发送没有错误时,它会显示在日志中。错误消息不显示我不知道为什么,
我不知道必须改变什么。
- 我也不知道如何在不使用 ESB 工具包的情况下构造错误消息并通过电子邮件发送。任何帮助是极大的赞赏。