Elmah.Io.Client
5.2.107-pre
Prefix Reserved
See the version list below for details.
dotnet add package Elmah.Io.Client --version 5.2.107-pre
NuGet\Install-Package Elmah.Io.Client -Version 5.2.107-pre
<PackageReference Include="Elmah.Io.Client" Version="5.2.107-pre" />
paket add Elmah.Io.Client --version 5.2.107-pre
#r "nuget: Elmah.Io.Client, 5.2.107-pre"
// Install Elmah.Io.Client as a Cake Addin #addin nuget:?package=Elmah.Io.Client&version=5.2.107-pre&prerelease // Install Elmah.Io.Client as a Cake Tool #tool nuget:?package=Elmah.Io.Client&version=5.2.107-pre&prerelease
Elmah.Io.Client
Raw client for communicating with the elmah.io API.
Usage
To start logging, create a new instance of the ElmahioAPI
class:
client = ElmahioAPI.Create(apiKey);
where apiKey
is your API key found on your profile page at elmah.io. Make sure to share this instance as a singleton.
Logging
Log messages either through the log
method:
client.Messages.Log(logId, new Exception(), Severity.Error, "This is a bug");
or through one of the helpers:
client.Messages.Debug(logId, "A debug message");
client.Messages.Fatal(logId, exception, "This is a fatal bug");
Creating logs
Logs are containers for log messages. To create a new log for a new application, microservice or similar, use the Create
method:
client.Logs.Create(new CreateLog("My log"));
Developing
Parts of this client is auto generated using NSwag. NSwag is an Open Source tool that can generate clients for many languages (like C#) from Swagger/OpenAPI 2.0 and 3.0 specs.
To generate a client from the most reason API specs, you first need to install NSwag. We recommend that you use the NPM package which can be installed with this:
npm install nswag -g
With this NSwag CLI tool, you can execute the following command in this folder to generate the newest client.
nswag run
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 is compatible. 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. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.1 is compatible. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 is compatible. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.0)
-
.NETFramework 4.6
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.1)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.0)
-
.NETStandard 1.4
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (24)
Showing the top 5 NuGet packages that depend on Elmah.Io.Client:
Package | Downloads |
---|---|
Elmah.Io.AspNetCore
An elmah.io provider for ASP.NET Core |
|
elmah.io
ELMAH error logger for sending errors to elmah.io. This package include initial configuration for getting up and running with elmah.io from ASP.NET, MVC, Web API etc. Consider using one of the specialized packages instead (Elmah.Io.Mvc, Elmah.Io.WebApi etc.). |
|
Serilog.Sinks.ElmahIo
Serilog sink that writes to elmah.io |
|
Elmah.Io.Extensions.Logging
An elmah.io provider for Microsoft.Extensions.Logging |
|
Elmah.Io.NLog
elmah.io target for NLog |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Elmah.Io.Client:
Repository | Stars |
---|---|
nkdAgility/azure-devops-migration-tools
Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Work Items, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
|
Version | Downloads | Last updated | |
---|---|---|---|
5.2.113-pre | 671 | 11/13/2024 | |
5.2.107-pre | 110 | 11/7/2024 | |
5.2.106-pre | 435 | 11/6/2024 | |
5.2.104-pre | 98 | 11/4/2024 | |
5.2.103-pre | 57 | 11/4/2024 | |
5.2.102-pre | 70 | 11/2/2024 | |
5.2.101-pre | 227 | 10/8/2024 | |
5.2.99-pre | 94 | 10/7/2024 | |
5.2.98-pre | 76 | 10/7/2024 | |
5.2.97-pre | 133 | 10/4/2024 | |
5.2.77-pre | 1,069 | 6/25/2024 | |
5.1.76 | 45,638 | 5/24/2024 | |
5.1.75 | 1,325 | 5/15/2024 | |
5.0.66 | 193,044 | 7/24/2023 | |
4.4.56 | 106,796 | 3/21/2023 | |
4.3.43 | 139,653 | 9/9/2022 | |
4.2.40 | 93,524 | 6/15/2022 | |
4.1.36 | 253,582 | 12/15/2021 | |
4.0.29 | 183,088 | 8/17/2021 | |
3.12.19 | 19,188 | 6/8/2021 | |
3.11.15 | 36,953 | 5/6/2021 | |
3.10.10 | 119,158 | 1/12/2021 | |
3.9.90 | 86,030 | 8/12/2020 | |
3.8.86 | 35,320 | 6/23/2020 | |
3.7.80 | 143,648 | 2/29/2020 | |
3.7.79 | 76,340 | 1/20/2020 | |
3.6.73 | 54,922 | 9/17/2019 | |
3.5.68 | 11,576 | 8/16/2019 | |
3.5.67 | 43,452 | 8/12/2019 | |
3.4.63 | 41,749 | 3/18/2019 | |
3.3.61 | 52,279 | 1/23/2019 | |
3.3.58 | 82,886 | 12/12/2018 | |
3.3.57 | 2,783 | 12/3/2018 | |
3.2.54 | 57,362 | 10/25/2018 | |
3.2.53 | 41,212 | 7/18/2018 | |
3.2.52 | 58,040 | 4/18/2018 | |
3.2.50 | 137,612 | 2/19/2018 | |
3.1.48 | 29,038 | 12/4/2017 | |
3.0.47 | 3,647 | 11/15/2017 | |
3.0.46 | 83,486 | 10/5/2017 | |
2.0.29 | 158,370 | 6/24/2016 |