I have several websites that have separate ELMAH databases. I would like to have one separate website to view all these databases.
I've created a new ASP.NET MVC 4 website for this purpose. I've added the NuGet package "Elmah.MVC" and added the following to Web.config:
<connectionStrings>
<add name="Elmah.Sql" connectionString="..." />
</connectionStrings>
<elmah>
<errorLog type="Elmah.SqlErrorLog" connectionStringName="Elmah.Sql" />
</elmah>
This works just fine going to a single database. I can also switch database by changing the connectionstring, but now I want to be able to switch database from code. Is there a way to do that?