How to read azure function live logs programmatically?

2020-10-16T11:26:10.617+00:00

I have a function which does some internal job and logs the status using Microsoft.Extensions.Logging.ILogger.

I want to read the live logs of it for testing purpose using C#

How can I do that?

I have also setup the ApplicationInsight for the function and I'm able to see the live logs in Live Metrics, But I want to read it programmatically.

Can anyone help me here?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,016 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,811 Reputation points Microsoft Employee
    2020-10-16T20:53:10.177+00:00

    Hello @Kolhar, Rajratan (SHS TE DC IND DI-DH TPF DPL) It doesn't seem possible at this time to retrieve the data generated in Live Metrics programmatically, please see:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.