Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

EnableSoftware/Enable.Exceptionless.Extensions

Repository files navigation

Enable.Exceptionless.Extensions

Reusable extensions for the Exceptionless client library.


Hosting extensions example

Project.csproj

<PackageReference Include="Enable.Exceptionless.Extensions.Hosting" Version="1.0.0" />

Program.cs

private static async Task Main(string[] args)
{
    var builder = new HostBuilder()
        .ConfigureAppConfiguration(config => config.AddJsonFile("appsettings.json"))
        .ConfigureServices((host, services) => services.AddExceptionless(host.Configuration.GetSection("Exceptionless")));

    using (var host = builder.Build())
    {
        await host.RunAsync();
    }
}

appsettings.json

{
    "Exceptionless": {
        "ApiKey": "???",
        "Enabled": true,
        "ServerUrl": "https://collector.exceptionless.io"
    }
}

About

Reusable extensions for the Exceptionless client library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages