Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Q42/Q42.Logging.ApplicationInsights
Log to ApplicationInsights using the default ILogger
https://github.com/Q42/Q42.Logging.ApplicationInsights
application-insights applicationinsights c-sharp csharp
Last synced: 3 months ago
JSON representation
Log to ApplicationInsights using the default ILogger
- Host: GitHub
- URL: https://github.com/Q42/Q42.Logging.ApplicationInsights
- Owner: Q42
- License: mit
- Archived: true
- Created: 2016-04-22T09:28:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T07:31:41.000Z (over 3 years ago)
- Last Synced: 2024-10-14T02:18:35.780Z (3 months ago)
- Topics: application-insights, applicationinsights, c-sharp, csharp
- Language: C#
- Size: 18.6 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dotnet-core - Q42.Logging.ApplicationInsights - Log appender for the build in ASP.NET Core logging to send all logs to Application Insights. (Frameworks, Libraries and Tools / Logging)
- awesome-dotnet-core - Q42.Logging.ApplicationInsights - 用于在ASP.NET Core日志中构建的日志附加程序,以将所有日志发送到Application Insights。 (框架, 库和工具 / 日志)
- fucking-awesome-dotnet-core - Q42.Logging.ApplicationInsights - Log appender for the build in ASP.NET Core logging to send all logs to Application Insights. (Frameworks, Libraries and Tools / Logging)
- awesome-dotnet-core - Q42.Logging.ApplicationInsights - Log appender for the build in ASP.NET Core logging to send all logs to Application Insights. (Frameworks, Libraries and Tools / Logging)
README
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](https://www.nuget.org/packages/Q42.Logging.ApplicationInsights/)
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(), 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