自elmah.axd输出字段 [英] Customize elmah.axd output fields

查看:198
本文介绍了自elmah.axd输出字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ELMAH显示主机,code,类型,错误,用户,默认情况下其错误日志网页上的日期和时间。有什么办法来配置和显示等领域,如IP或REFERER?

ELMAH shows host, code, type, error, user, date and time by default on its error log web page. Is there any way to configure it and show other fields like IP or REFERER?

推荐答案

ELMAH是开源的。您可以下载源代码,让你喜欢的任何修改(当然许可证的条款内。)

ELMAH is open-source. You can download the source and make any modifications you like (within the terms of the license, of course.)

您应该能够捕获由 HttpConext.Request 对象提供的任何数据。你必须修改code,抓住和存储数据和数据库,使列新数据。

You should be able to trap any data made available by the HttpConext.Request object. You'd have to modify the code that grabs and stores the data, and the database to make columns for that new data.

这篇关于自elmah.axd输出字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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