Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created June 19, 2017 06:06
Show Gist options
  • Save justinyoo/983a518cb9f6e9c55c695e6c0a4bb8f2 to your computer and use it in GitHub Desktop.
Save justinyoo/983a518cb9f6e9c55c695e6c0a4bb8f2 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.LogInformation("C# HTTP trigger function processed a request.");
log.LogInformation($"ProductId: {productId}");
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment