.Net Core 3.0 - ElmahExtensions.RiseError not logging
See original GitHub issueI am using ElmahExtensions.RiseError in my global error handler. Since .net Core 3.0 it’s not working anymore. The call is made to RiseError, I do not get an exception, but nothing is logged and I don’t receive the email. If I remove the Global exception handler and throw an exception, Elmah sends the email correctly.
public override void OnException(ExceptionContext context) { ... ElmahExtensions.RiseError(context.Exception); base.OnException(context); }
I also tested ElmahExtensions.RiseError directly in my controller and I have the same issue. Nothing is logged.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Elmah for .NET Core - manually logging
I am trying to find a method that looks something like this: Elmah.EntryWrite(errorInfo) and that method then stores the information in the ...
Read more >Logging Error Details with ELMAH (C#)
ELMAH is a free, open source error logging library that includes features like error filtering and the ability to view the error log...
Read more >Logging from ASP.NET Core - elmah.io Documentation
To log all warnings and errors from ASP.NET Core, install the following NuGet package: Install-Package Elmah.Io.AspNetCore. Call the AddElmahIo method.
Read more >How-to handle exceptions and save error logs to SQL in ...
How-to handle exceptions and save error logs to SQL in ASP .NET Core · Step 1:Download ElmahCore · Step 2: Changes in Startup.cs...
Read more >Logging in .NET Core and ASP.NET Core
Learn how to use the logging framework provided by the Microsoft.Extensions.Logging NuGet package.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
On .Net Core 3.1, it not working
i can solve this problem with use ElmahExtensions class in my controller
ElmahExtensions.RiseError(new Exception(“your msg”));