Logging Error Details with ELMAH
Error Logging Modules And Handlers (ELMAH) offers another approach to logging runtime errors in a production environment. ELMAH is a free, open source error logging library that includes features like error filtering and the ability to view the error log from a web page, as an RSS feed, or to download it as a comma-delimited file.
Ref: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deploying-web-site-projects/logging-error-details-with-elmah-cs
Ref: https://docs.elmah.io/logging-to-elmah-io-from-aspnet-core/
Ref: https://www.infoworld.com/article/3270935/application-development/how-to-use-elmah-for-error-logging-in-aspnet-core.html?upd=1535958949442
Working URL:
https://github.com/ElmahCore/ElmahCore
Install-Package elmahcore
Ref: https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deploying-web-site-projects/logging-error-details-with-elmah-cs
Ref: https://docs.elmah.io/logging-to-elmah-io-from-aspnet-core/
Ref: https://www.infoworld.com/article/3270935/application-development/how-to-use-elmah-for-error-logging-in-aspnet-core.html?upd=1535958949442
Working URL:
https://github.com/ElmahCore/ElmahCore
Install-Package elmahcore
//Elmah Configuration
public static void ConfigureElmah(this IServiceCollection services, IConfiguration configuration)
{
services.AddElmah<SqlErrorLog>(options =>
{
options.ConnectionString = configuration.GetConnectionString("ELMAHConnectionString");
});
}
app.UseElmah();
public static void ConfigureElmah(this IServiceCollection services, IConfiguration configuration)
{
services.AddElmah<SqlErrorLog>(options =>
{
options.ConnectionString = configuration.GetConnectionString("ELMAHConnectionString");
});
}
app.UseElmah();
Comments
Post a Comment