Reusable extensions for the Exceptionless client library.
<PackageReference Include="Enable.Exceptionless.Extensions.Hosting" Version="1.0.0" />
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();
}
}
{
"Exceptionless": {
"ApiKey": "???",
"Enabled": true,
"ServerUrl": "https://collector.exceptionless.io"
}
}