ServiceStack/ServiceStack.Logging — pull request #5 by Arxisos (2012-02-28 17:53:01+00:00)
Title: Improved elmah logger

The old elmah logger was throwing an exception on startup, because the HttpContext isn't available on startup.

```
Request is not available in this context
at System.Web.HttpContext.get_Request()
at Elmah.ErrorLog.InferApplicationName(HttpContext context)
at Elmah.ErrorLog.GetDefaultImpl(HttpContext context)
at Elmah.ServiceContainer.GetService(Type serviceType)
at Elmah.ServiceCenter.FindService(Object context, Type serviceType)
at Elmah.ServiceCenter.GetService(Object context, Type serviceType)
at Elmah.ErrorLog.GetDefault(HttpContext context)
at ServiceStack.Logging.Elmah.ElmahLogFactory.GetLogger(Type type)
at ServiceStack.Logging.LogManager.GetLogger(Type type) in C:\src\ServiceStack\src\ServiceStack.Interfaces\Logging\LogManager.cs:line 39
at ServiceStack.WebHost.EndPoints.Formats.MarkdownFormat..cctor()
```