vijayamadhavareddy / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Make rendering public #247

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Making rendering methods public would enable better integration with an ASP.NET 
MVC web site, via the standard controller approach. It would also enable users 
to use a standard MVC authorization process to limit access to the logs.

Original issue reported on code.google.com by blowd...@gmail.com on 16 Aug 2011 at 2:51

GoogleCodeExporter commented 9 years ago
Elmah.ErrorLogPageFactory is already public and can be used to obtain the 
rendering as-is. 

The RaboonBlog project had a nice implementation of an ElmahController[1] and 
ElmahResult using ErrorLogPageFactory precisely for this purpose. Alexander 
Beletsky describes it on his blog[2] and has an indenpendent NuGet package[3] 
published to do the same.

[1] 
https://github.com/ayende/RaccoonBlog/blob/42bb432eb68eeec8f7361bbdbd53f3a8f04fa
96d/RaccoonBlog.Web/Areas/Admin/Controllers/ElmahController.cs
[2] http://www.beletsky.net/2011/03/integrating-elmah-to-aspnet-mvc-in.html
[3] http://nuget.org/packages/Elmah.MVC

Original comment by azizatif on 18 Dec 2011 at 4:51