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

Latest commit

 

History

History
24 lines (16 loc) · 788 Bytes

readme.md

File metadata and controls

24 lines (16 loc) · 788 Bytes

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