企业库日志记录无法在生产中使用 [英] Enterprise Library Logging not working in production

查看:71
本文介绍了企业库日志记录无法在生产中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Enterprisi Library(Microsoft.Practices.EnterpriseLibrary.Logging.dll)进行日志记录。

We are using Enterprisi Library (Microsoft.Practices.EnterpriseLibrary.Logging.dll) for logging purposes.

在本地机器上 - 它运行良好,但在生产中 - 它确实没有。它不会写入日志文件或事件日志。

On the local machine - it works great, but in production - it does'n. It does not write to log file or event log.

您能告诉我们我们能做些什么吗?它?

Could you please let me know what can we do about it?

谢谢。

推荐答案

可能是权限问题......您可以尝试几件事。

如果可能,在生产环境中部署二进制文件的调试版本,附加远程调试器进行故障排除。

If possible, deploy debug version of the binary in the production environment, attach a remote debugger to troubleshoot.

或。

我建议构建一个封装EntLib的小应用程序一个try catch块,看看它得到了什么错误。

{ Gaja; }

http://gajakannan.com/netarch.aspx


这篇关于企业库日志记录无法在生产中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆