See the version list below for details.
dotnet add package Elmah.Io.Client --version 5.0.66
NuGet\Install-Package Elmah.Io.Client -Version 5.0.66
<PackageReference Include="Elmah.Io.Client" Version="5.0.66" />
paket add Elmah.Io.Client --version 5.0.66
#r "nuget: Elmah.Io.Client, 5.0.66"
// Install Elmah.Io.Client as a Cake Addin #addin nuget:?package=Elmah.Io.Client&version=5.0.66 // Install Elmah.Io.Client as a Cake Tool #tool nuget:?package=Elmah.Io.Client&version=5.0.66
Raw client for communicating with the elmah.io API.
To start logging, create a new instance of the
client = ElmahioAPI.Create(apiKey);
apiKey is your API key found on your profile page at elmah.io. Make sure to share this instance as a singleton.
Log messages either through the
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");
Logs are containers for log messages. To create a new log for a new application, microservice or similar, use the
client.Logs.Create(new CreateLog("My log"));
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.
|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-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.|
NuGet packages (22)
Showing the top 5 NuGet packages that depend on Elmah.Io.Client:
An elmah.io provider for ASP.NET Core
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 sink that writes to elmah.io
An elmah.io provider for Microsoft.Extensions.Logging
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.
This package is not used by any popular GitHub repositories.