Elmah.Io.Client 5.2.118
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
Showing the top 20 packages that depend on Elmah.Io.Client.
Packages | Downloads |
---|---|
Elmah.Io.AspNetCore
An elmah.io provider for ASP.NET Core
|
8 |
Elmah.Io.AspNetCore
An elmah.io provider for ASP.NET Core
|
10 |
.NET Framework 4.5
- Newtonsoft.Json (>= 10.0.3)
- System.Net.Http (>= 4.3.0)
.NET Standard 2.0
- System.Net.Http (>= 4.3.4)
- Newtonsoft.Json (>= 10.0.3)
.NET Standard 1.1
- System.Net.Http (>= 4.3.0)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
.NET 8.0
- Newtonsoft.Json (>= 13.0.3)
.NET Standard 1.4
- System.Net.Http (>= 4.3.4)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
.NET Framework 4.6.1
- System.Net.Http (>= 4.3.4)
- Newtonsoft.Json (>= 10.0.3)
.NET Framework 4.6
- System.Net.Http (>= 4.3.1)
- Newtonsoft.Json (>= 10.0.3)
Version | Downloads | Last updated |
---|---|---|
5.2.118 | 8 | 03/30/2025 |
5.2.117 | 7 | 03/30/2025 |
5.2.114 | 7 | 04/01/2025 |
5.1.76 | 7 | 03/30/2025 |
5.1.75 | 7 | 03/31/2025 |
5.0.66 | 6 | 03/30/2025 |
4.4.56 | 7 | 03/30/2025 |
4.3.43 | 6 | 03/30/2025 |
4.2.40 | 6 | 03/30/2025 |
4.1.36 | 7 | 03/30/2025 |
4.0.29 | 6 | 03/30/2025 |
3.12.19 | 6 | 03/30/2025 |
3.11.15 | 6 | 03/31/2025 |
3.10.10 | 8 | 03/31/2025 |
3.9.90 | 7 | 03/30/2025 |
3.8.86 | 7 | 03/30/2025 |
3.7.80 | 6 | 03/31/2025 |
3.7.79 | 7 | 03/30/2025 |
3.6.73 | 7 | 03/30/2025 |
3.5.68 | 7 | 03/30/2025 |
3.5.67 | 7 | 03/30/2025 |
3.4.63 | 6 | 03/30/2025 |
3.3.61 | 7 | 03/30/2025 |
3.3.58 | 6 | 03/30/2025 |
3.3.57 | 6 | 03/31/2025 |
3.2.54 | 7 | 03/30/2025 |
3.2.53 | 6 | 03/31/2025 |
3.2.52 | 7 | 03/31/2025 |
3.2.50 | 6 | 03/30/2025 |
3.1.48 | 7 | 03/30/2025 |
3.0.47 | 7 | 03/30/2025 |
3.0.46 | 6 | 03/30/2025 |
2.0.29 | 8 | 03/30/2025 |