ElmahCore 1.0.4
See the version list below for details.
dotnet add package ElmahCore --version 1.0.4
NuGet\Install-Package ElmahCore -Version 1.0.4
paket add ElmahCore --version 1.0.4
#r "nuget: ElmahCore, 1.0.4"
#:package ElmahCore@1.0.4
#addin nuget:?package=ElmahCore&version=1.0.4
#tool nuget:?package=ElmahCore&version=1.0.4
Using ElmahCore
ELMAH for ASP.NET Core
Add nuget package elmahcore
Simple usage
Startup.cs
1) services.AddElmah() in ConfigureServices
2) app.UseElmah(); in Configure
Change URL path
services.AddElmah(options => option.Path = "you_path_here")
Change Error Log type
You can create your own error log, which will store errors anywhere.
class MyErrorLog: ErrorLog
//implement ErrorLog
This ErrorLogs available in board:
- MemoryErrorLog – store errors in memory (by default)
- XmlFileErrorLog – store errors in XML files
- SqlErrorLog - store errors in MS SQL
services.AddElmah(options =>
{
options.LogPath = "~/log"; // OR options.LogPath = "с:\errors";
});
services.AddElmah(options =>
{
options.ConnectionString = "connection_string"; // DB structure see here: https://bitbucket.org/project-elmah/main/downloads/ELMAH-1.2-db-SQLServer.sql
});
Using Notifiers
You can create your own notifiers by implement IErrorNotifier interface and add notifier to Elmah options:
services.AddElmah(options =>
{
options.Path = @"errors";
options.LogPath = "~/logs";
options.Notifiers.Add(new ErrorMailNotifier("Email",emailOptions));
});
Each notifier must have unique name.
Using Filers
You can use Elmah XML filter configuration in separate file, create and add custom filters:
services.AddElmah(options =>
{
options.FiltersConfig = "elmah.xml";
options.Filters.Add(new MyFilter());
})
Custom filter must implement IErrorFilter. XML filter config example:
see more here
JavaScript filters not yet impemented 😦
Add notifiers to errorFilte node if you do not want to send notifications Filtered errors will be logged, but will not be sent.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- Microsoft.AspNetCore.Mvc (>= 2.0.1)
- Microsoft.Extensions.PlatformAbstractions (>= 1.1.0)
- System.Data.SqlClient (>= 4.4.0)
NuGet packages (25)
Showing the top 5 NuGet packages that depend on ElmahCore:
| Package | Downloads |
|---|---|
|
Shesha.Application
Package Description |
|
|
Shesha.Elmah
Package Description |
|
|
Shesha.Sms.Clickatell
Package Description |
|
|
Shesha.Scheduler
Package Description |
|
|
Shesha.Web.FormsDesigner
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on ElmahCore:
| Repository | Stars |
|---|---|
|
dotnetzoom/AspNetCore-WebApi-Course
🥇 Professional REST API design with ASP.NET Core WebAPI
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.2 | 4,139,035 | 5/14/2022 |
| 2.1.1 | 195,140 | 1/24/2022 |
| 2.1.0 | 52,922 | 1/19/2022 |
| 2.0.7 | 213,630 | 8/31/2021 |
| 2.0.6 | 677,306 | 2/6/2021 |
| 2.0.5 | 44,524 | 1/21/2021 |
| 2.0.4 | 30,180 | 1/20/2021 |
| 2.0.3 | 35,042 | 1/13/2021 |
| 2.0.2 | 50,832 | 12/28/2020 |
| 2.0.1 | 28,389 | 12/28/2020 |
| 2.0.0 | 28,703 | 12/25/2020 |
| 1.2.7 | 165,776 | 12/13/2020 |
| 1.2.6 | 35,891 | 12/13/2020 |
| 1.2.5 | 1,006,045 | 3/15/2019 |
| 1.2.4 | 75,071 | 2/5/2019 |
| 1.2.3 | 109,848 | 1/3/2019 |
| 1.2.2 | 29,943 | 12/17/2018 |
| 1.2.1 | 32,683 | 12/3/2018 |
| 1.2.0 | 43,726 | 10/9/2018 |
| 1.0.4 | 78,760 | 12/8/2017 |