Log4net 与 BizTalk 2010
以前有人在 BizTalk 2010 Orchestration 中使用过 Log4Net 吗?最近,我将 BizTalk 解决方案从 BizTalk 2006 R2 移植到 BizTalk 2010。我使用的 log4net 是 Scott Colestock 编写的包装器。迁移到 BizTalk 2010 后,不再打印日志,但编排仍然运行,没有任何错误。
我尝试按照一些人的建议将以下内容添加到 log4net 配置中(尽管 log4net 的这些用法不是 BizTalk 上下文)。但它仍然不起作用。有人对使 log4net 在 BizTalk 2010 中工作有任何线索或经验吗?
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Has anyone used Log4Net within BizTalk 2010 Orchestrations before? Recently I ported my BizTalk solution from BizTalk 2006 R2 to BizTalk 2010. The log4net I'm using is the wrapper written by Scott Colestock. After migrating to BizTalk 2010, the logs are no longer printing but still the orchestrations run without any error.
I tried to add the following to the log4net config as suggested by some (though those usage of log4net are not BizTalk context). Still it is not working. Anyone has any clue or experience in making log4net work in BizTalk 2010?
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否已迁移到 x64 服务器并且正在运行 x64 主机?您的 Log4net 可能缺少某些东西才能正常工作。请参阅此主题。
如果是这样,请尝试在 x86 主机中运行它,看看是否会产生影响。
我知道这不是答案,但您是否看过 CAT 团队围绕 检测 BizTalk?我会尽可能地使用它。
Did you move to an x64 server and are you running x64 hosts? There might be something missing for your Log4net to work. See this thread.
If that might be, try run it in a x86 host and see if it makes a difference.
I know it's not an answer, but have you looked at the guide the CAT team came up with around instrumenting BizTalk? I try to use that when I can.