Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ELMAH for asp.net core

I am working on asp.net core webapp hosted on azure and I want to write my Elmah logs to my azure table storage .Many of the examples I looked into are using "API_KEY" and "logbucketId" but I am not sure what they are. For instance as per elmah docs here https://docs.elmah.io/logging-to-elmah-io-from-aspnet-core/

app.UseElmahIo(
    "API_KEY", 
    new Guid("LOG_ID"),

After installing nuget package, I don't see any API_KEY or LogBucketId in my appsettings.json file.

Where I can find my API_KEY and LogBucket_Id ?

like image 427
roney Avatar asked Dec 18 '22 05:12

roney


1 Answers

https://github.com/ElmahCore/ElmahCore supports .net core now.

It is not based on Modules or Handlers, but Middleware.

It works fine although still limited.

The async calls are not being used at the moment. But it is quite extensible.

like image 156
Gustavo Rocha Avatar answered Jan 03 '23 05:01

Gustavo Rocha