Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created June 19, 2017 06:05
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/d100936d14eda767abe15062b1929d49 to your computer and use it in GitHub Desktop.
Save justinyoo/d100936d14eda767abe15062b1929d49 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, TraceWriter 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