-1

I'm using ElmahCore in an ASP.net Core applicaiton,

in the docs I can see you can log manually using an extension method for the HttpContext, but I can't find anywhere how to log an error manually without having the HttpContext (from a background worker for example)

Greg Burghardt
  • 17,900
  • 9
  • 49
  • 92
buga
  • 852
  • 9
  • 21

1 Answers1

1

you have to call ElmahExtensions.RaiseError(ex);

(found it in the issues https://github.com/ElmahCore/ElmahCore/issues/113 )

buga
  • 852
  • 9
  • 21