Elmah.Io.Client 4.1.36 Prefix Reserved

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Elmah.Io.Client -Version 4.1.36
dotnet add package Elmah.Io.Client --version 4.1.36
<PackageReference Include="Elmah.Io.Client" Version="4.1.36" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Elmah.Io.Client --version 4.1.36
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Elmah.Io.Client, 4.1.36"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Elmah.Io.Client as a Cake Addin
#addin nuget:?package=Elmah.Io.Client&version=4.1.36

// Install Elmah.Io.Client as a Cake Tool
#tool nuget:?package=Elmah.Io.Client&version=4.1.36
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Elmah.Io.Client

Build status NuGet

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

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.2.37-pre 39 1/4/2022
4.1.36 2,154 12/15/2021
4.0.29 43,010 8/17/2021
3.12.19 5,072 6/8/2021
3.11.15 17,608 5/6/2021
3.10.10 58,317 1/12/2021
3.9.90 38,926 8/12/2020
3.8.86 18,086 6/23/2020
3.7.80 88,594 2/29/2020
3.7.79 55,199 1/20/2020
3.6.73 30,992 9/17/2019
3.5.68 5,824 8/16/2019
3.5.67 28,471 8/12/2019
3.4.63 27,404 3/18/2019
3.3.61 40,161 1/23/2019
3.3.58 63,794 12/12/2018
3.3.57 1,885 12/3/2018
3.2.54 38,247 10/25/2018
3.2.53 30,509 7/18/2018
3.2.52 47,899 4/18/2018
3.2.50 85,812 2/19/2018
3.1.48 22,809 12/4/2017
3.0.47 2,646 11/15/2017
3.0.46 57,763 10/5/2017
2.0.29 123,751 6/24/2016