Skip to content

Instantly share code, notes, and snippets.

@lettucebo
Created October 2, 2018 08:28
Show Gist options
  • Save lettucebo/2827d9ec3723014a84b4baf720d32be4 to your computer and use it in GitHub Desktop.
Save lettucebo/2827d9ec3723014a84b4baf720d32be4 to your computer and use it in GitHub Desktop.
public class Startup
{
...
public void ConfigureServices(IServiceCollection services)
{
...
services.AddElmahIo(o =>
{
o.ApiKey = "{API_KEY}";
o.LogId = new Guid("{LOG_ID}");
});
...
}
...
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseElmahIo();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment