elmah / Elmah

Error Logging Modules & Handlers for ASP.NET
https://elmah.github.io/
Apache License 2.0
310 stars 63 forks source link

Support Logging to Azure Table Storage #105

Open atifaziz opened 9 years ago

atifaziz commented 9 years ago

Originally reported on Google Code with ID 105

What new or enhanced feature are you proposing?
Add support for logging to Azure Table Storage

What goal would this enhancement help you achieve?
Ability to use ELMAH with Windows Azure + Table Storage.

Reported by pbsbackup on 2009-05-27 13:30:21

atifaziz commented 9 years ago
That would be quite handy indeed. We are considering implementing such a feature
ourselves for Lokad.Cloud.

Reported by joannes.vermorel on 2009-09-13 15:52:46

atifaziz commented 9 years ago
Did you implement logging to table storage?  If so, could you share the source or
contribute it to the Elmah project SVN?

Reported by pbsbackup on 2009-11-11 20:59:58

atifaziz commented 9 years ago
Sorry, we did produce a hasty implementation not compatible with ELMAH based on blob
storage. Microsoft will unveil a new native logging system for Azure in 1 week from
now at PDC. It will hopefully clarify the situation.

Reported by joannes.vermorel on 2009-11-11 21:02:51

atifaziz commented 9 years ago
There is a Nuget package submitted by Wade Wegner that enables ELMAH to log into Azure
Table Storage: http://nuget.org/packages/WindowsAzure.ELMAH.Tables

Here is more info about it: http://www.wadewegner.com/2011/08/using-elmah-in-windows-azure-with-table-storage/

It would be nice to have this out-of-the-box, with ELMAH.

Reported by carlos.sardo on 2013-02-11 13:42:59

atifaziz commented 9 years ago
I have my own implementation, which is based on Wade Wegner's but fixes a few issues
with that code (key collisions, table row size limits). My plan is to develop this
into a more robust library. This will probably be hosted on github for starters.

Reported by wild.peister on 2013-06-05 19:51:43

atifaziz commented 9 years ago
Here's my project: 

https://www.nuget.org/packages/Elmah.AzureTableStorage/
https://github.com/MisinformedDNA/Elmah.AzureTableStorage

If you like it, we could certainly integrate it into the core project.

NOTE 1: Due to SDK changes, Wade's version no longer works.

NOTE 2: It is not possible to get the correct total number of Elmah records without
retrieving every record and then counting them. This would be highly inefficient. Instead,
if the max number of records are displayed, then it adds one so that the user knows
to look to the next page for more records. See GetErrors() in https://github.com/MisinformedDNA/Elmah.AzureTableStorage/blob/master/src/Elmah.AzureTableStorage/AzureTableStorageErrorLog.cs

Reported by dfriedman@dragondoor.com on 2013-12-10 19:13:37