PowerShellLoggingModule icon indicating copy to clipboard operation
PowerShellLoggingModule copied to clipboard

Added an ApplicationInsights logger

Open cathalmchale opened this issue 6 years ago • 0 comments

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).

cathalmchale avatar May 28 '18 16:05 cathalmchale