Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not logging exceptions from Blazor #209

Open
chrfin opened this issue Aug 6, 2021 · 0 comments
Open

Not logging exceptions from Blazor #209

chrfin opened this issue Aug 6, 2021 · 0 comments

Comments

@chrfin
Copy link

chrfin commented Aug 6, 2021

I have a Blazor Server-Side app running with .NET 5.0 and I'm trying to switch from ElmahCore to Exceptional.  
But I can't get it to log Blazor exceptions.
When I throw an exception in a MVC controller it gets logged, but if I throw one in e.g. OnAfterRenderAsync nothing gets logged. 

What do I need to configure to get Blazor exceptions logged with Exceptional?

Also in ElmahCore I could use ElmahExtensions.RiseError(exception); to log an exception I catched/handled in code but still wanted to show up in the error-log. Is there something similar for Exceptional?

I configured Exceptional with the default configuration from HERE.

NOTE: This is a cross-post with StackOverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant