Is it possible to configure ELMAH with ASP.NET vNext? If so, how?
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.
Thank you
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").
In ASP.NET 5 the replacement for modules and handlers is called middleware.
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
来源:https://stackoverflow.com/questions/28907017/elmah-on-asp-net-vnext