开发者

Extend ELMAH to include another viewer hitting a different table

开发者 https://www.devze.com 2022-12-08 00:17 出处:网络
I\'ve been doing a little tweaking of the SQL-side of ELMAH to provide basic logging capabilities to my MVC app.

I've been doing a little tweaking of the SQL-side of ELMAH to provide basic logging capabilities to my MVC app.

I changed ELMAH_LogError to test the TYPE field for text sent by my App and, if found, inserts to a different table that i'd created by 'Script As'

It was reasonably easy to simply create a new table because I didn't try to rename any fi开发者_如何学Goelds. The structure is identical to the original. Any chance this same principle (same structure/different table name) could be (easily) extended to providing a new 'Logger.axd' that would provide viewing of my newly created table?

thx

0

精彩评论

暂无评论...
验证码 换一张
取 消