ASP.NET vNext上的ELMAH? [英] ELMAH on ASP.NET vNext?

查看:87
本文介绍了ASP.NET vNext上的ELMAH?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用ASP.NET vNext配置ELMAH?如果可以,怎么办?

Is it possible to configure ELMAH with ASP.NET vNext? If so, how?

鉴于甚至没有web.config了,我什至不知道从哪里开始.如果有人有或可以解决这个问题,请与我们分享.

I am lost as to where even start, given there's not even a web.config anymore. If anyone has or can figure it out, please share with us.

谢谢

推荐答案

ELMAH不适用于ASP.NET 5,因为ELMAH(使用其名称)基于ASP.NET 4.x的模块和处理程序("MAH") "ELMAH").

ELMAH does not work with ASP.NET 5 because ELMAH (given its name) is based on ASP.NET 4.x's Modules and Handlers (the "MAH" of "ELMAH").

在ASP.NET 5中,模块和处理程序的替换称为中间件.

In ASP.NET 5 the replacement for modules and handlers is called middleware.

ASP.NET 5中有一个称为"ELM"(错误记录中间件)的原型,该原型具有与ELMAH类似的某些功能.您可以在此处签出示例: https://github.com/aspnet/Entropy/tree/dev/samples/Logging.Elm

There is a prototype in ASP.NET 5 called "ELM" (Error Logging Middleware) that has some features similar to ELMAH. You can check out a sample here: https://github.com/aspnet/Entropy/tree/dev/samples/Logging.Elm

这篇关于ASP.NET vNext上的ELMAH?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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