-
Notifications
You must be signed in to change notification settings - Fork 93
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
Support for Blazor Server #141
Comments
I'm actually a little puzzled why this doesn't work. Blazor Server logs exceptions to builder.Host.ConfigureLogging((context, logging) =>
{
logging.Services.AddElmah<PgsqlErrorLog>(options =>
{
options.ConnectionString = npgsqlConnectionStringBuilder.ConnectionString;
options.OnPermissionCheck = (context) =>
{
var email = context.User?.Claims?.Where(c => c.Type.Equals(System.Security.Claims.ClaimTypes.Email))
.Select(c => c.Value)
.FirstOrDefault();
return email.EndsWith("@*******.***");
};
});
}); Am I doing something wrong? |
Hi, has this been resolved? I have Blazor Server, added ElmahCore and it is logging things like 404 but not exceptions happening in Blazor Server - I mean exceptions that the default Microsoft logger stores in Windows Event log. I would like these exceptions to be saved into ElmahCore as well. |
This issue is now solved using .NET's 🔥See this comment here, which references the article here 🔥🔥 |
Thanks a lot for all of the work that has gone into this fantastic project. I've used it for multiple ASP.NET Core MVC projects and it works so well. I really appreciate all of your efforts!
Now, I'm building a Blazor Server app and, unfortunately, ElmahCore does not catch exceptions thrown in Blazor Server components. Is there any way this could be added easily?
The text was updated successfully, but these errors were encountered: