Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Q42/Q42.Logging.ApplicationInsights

Repository files navigation

Q42.Logging.ApplicationInsights

Small library that will send logs to Application Insights when using the default ASP.Net Core 1.0 logging.

Available on NuGet

Usage: Make sure you've set up ApplicationInsights in your application:

Startup.cs / ConfigureServices:
services.AddApplicationInsightsTelemetry(Configuration);

Add this package to your project.json and use it: Startup.cs / Configure:
loggerFactory.AddApplicationInsights(app.ApplicationServices.GetRequiredService<TelemetryClient>(), LogLevel.Warning);

Contributions

Contributions are welcome, just send a PR!

Credits

This project is based on: https://github.com/alexvaluyskiy/BookPortal/tree/master/src/BookPortal.Core.Logging

Releases

No releases published

Packages

No packages published

Languages