对于ELMAH日志独立浏览器应用程序 [英] Separate viewer application for ELMAH's log

查看:128
本文介绍了对于ELMAH日志独立浏览器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用ELMAH在我们的ASP.NET应用程序错误日志。我们使用SQL Server错误日志。因为在应用程序的安全性和配置的限制,我们希望有一个单独的Web应用程序日志查看器UI(Elmah.ErrorLogPageFactory),连接到同一个数据库中。

We're using ELMAH for error logging in our ASP.NET application. We use the SQL Server error logging. Because of security and configuration constraints in the application, we would like to have the log viewer UI (Elmah.ErrorLogPageFactory) in a separate web application, connected to the same database.

不过,ELMAH过滤器上的应用程序名称错误,所以只部署一个单独的应用程序,你也可以得到一个单独的日志。是否有配置ELMAH作为一个独立的日志查看器正常工作,即从不同的应用程序中显示的日志信息?办法

However, ELMAH filters errors on application name, so just deploying a separate application, you also get a separate log. Is there a way to configure ELMAH to work as a standalone log viewer, i.e. display the log messages from a different application?

推荐答案

您可以在这样的配置重写应用程序的名称...

You can override the application name in the config like this...

<elmah>
  <errorLog type="..." applicationName="YourApplicationName" />
</elmah>

您可以只给出您的浏览器应用程序,要监视,或在这两个配置文件指定相同的自定义名称的应用程序的现有名称。

You could either just give your viewer application the existing name of the application that you want to monitor, or specify the same custom name in both config files.

这篇关于对于ELMAH日志独立浏览器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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