首页 > 解决方案 > 从生产环境获取日志

问题描述

我们有在许多客户端机器上运行的 AC# 应用程序,并且我们有非常多的代码行,如下所示:

try{exceptionalMethod();}//all type of exceptions may be throw here (system.exception,our business exceptions ,...)
catch{MessageBox.Show("Error");randomMethod();}//we don't have any log here

我们如何在生产环境的日志文件中记录所有 CLR First Chance 异常。
注意:我们不能在客户端机器上安装任何东西(如果可以,我们使用 Adplus 和 Windows 调试器,配置文件非常简单)。
但是我们可以在代码中插入最小的更改并发布新版本。

标签: c#.netwindowsproduction-environmentadplus

解决方案


推荐阅读