Added an ApplicationInsights logger#5
Open
cathalmchale wants to merge 5 commits intodlwyatt:masterfrom
Open
Conversation
added 5 commits
May 28, 2018 11:37
…ve the dll co-resident (all in bin output dir).
…line to actually log to Azure. Will add azure interaction in next commit, which will require a nuget ref - this is a dependency that the original project did not require.
…licationInsights.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This may be of interest.
I wanted to use your logging framework (I need a logger that intercepts, not one that has to be called explicitly) but I wanted my logs sent to the Azure cloud.
Azure have a logging and monitoring offering called "Application Insights". By following the same convention as you've already laid out you can "Enable-ApplicationInsights", provide an "InstrumentationKey" and have your logs sent off to the Azure cloud rather than to a file on disk.
Thanks.
p.s. it did require upgrading the .NET framework and adding a nuget reference to Microsoft.ApplicationInsights (MIT license).