Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created June 19, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/72c4950e106d4576860590709e43561e to your computer and use it in GitHub Desktop.
Save justinyoo/72c4950e106d4576860590709e43561e to your computer and use it in GitHub Desktop.
Azure Functions Logging to Application Insights
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, string productId, ILogger log)
{
log.Info("C# HTTP trigger function processed a request.");
log.Info($"ProductId: {productId}");
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment