Elmah.Io.Client
4.2.40
Prefix Reserved
See the version list below for details.
Install-Package Elmah.Io.Client -Version 4.2.40
dotnet add package Elmah.Io.Client --version 4.2.40
<PackageReference Include="Elmah.Io.Client" Version="4.2.40" />
paket add Elmah.Io.Client --version 4.2.40
#r "nuget: Elmah.Io.Client, 4.2.40"
// Install Elmah.Io.Client as a Cake Addin
#addin nuget:?package=Elmah.Io.Client&version=4.2.40
// Install Elmah.Io.Client as a Cake Tool
#tool nuget:?package=Elmah.Io.Client&version=4.2.40
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.
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 |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen30 tizen40 tizen60 |
Universal Windows Platform | uap uap10.0 |
Windows Phone | wpa81 |
Windows Store | netcore netcore45 netcore451 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.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)
NuGet packages (20)
Showing the top 5 NuGet packages that depend on Elmah.Io.Client:
Package | Downloads |
---|---|
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.). |
|
Elmah.Io.AspNetCore
An elmah.io provider for ASP.NET Core |
|
Serilog.Sinks.ElmahIo
Serilog sink that writes to elmah.io |
|
Elmah.Io.Extensions.Logging
An elmah.io provider for Microsoft.Extensions.Logging |
|
Elmah.Io.WebApi
ELMAH error logger for sending errors to elmah.io from ASP.NET Web API. This package include initial configuration for getting up and running with elmah.io. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
4.3.41-pre | 38 | 7/27/2022 | |
4.2.40 | 5,349 | 6/15/2022 | |
4.1.36 | 47,665 | 12/15/2021 | |
4.0.29 | 96,029 | 8/17/2021 | |
3.12.19 | 7,305 | 6/8/2021 | |
3.11.15 | 23,479 | 5/6/2021 | |
3.10.10 | 72,620 | 1/12/2021 | |
3.9.90 | 49,395 | 8/12/2020 | |
3.8.86 | 22,141 | 6/23/2020 | |
3.7.80 | 110,857 | 2/29/2020 | |
3.7.79 | 60,541 | 1/20/2020 | |
3.6.73 | 34,630 | 9/17/2019 | |
3.5.68 | 6,328 | 8/16/2019 | |
3.5.67 | 30,624 | 8/12/2019 | |
3.4.63 | 29,717 | 3/18/2019 | |
3.3.61 | 41,926 | 1/23/2019 | |
3.3.58 | 67,321 | 12/12/2018 | |
3.3.57 | 1,966 | 12/3/2018 | |
3.2.54 | 40,722 | 10/25/2018 | |
3.2.53 | 32,145 | 7/18/2018 | |
3.2.52 | 49,603 | 4/18/2018 | |
3.2.50 | 96,800 | 2/19/2018 | |
3.1.48 | 24,020 | 12/4/2017 | |
3.0.47 | 2,747 | 11/15/2017 | |
3.0.46 | 61,327 | 10/5/2017 | |
2.0.29 | 128,173 | 6/24/2016 |