Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to view the console output from Azure functions? #9828

Closed
varkey98 opened this issue Jan 23, 2024 · 3 comments
Closed

How to view the console output from Azure functions? #9828

varkey98 opened this issue Jan 23, 2024 · 3 comments
Assignees

Comments

@varkey98
Copy link

varkey98 commented Jan 23, 2024

Is your question related to a specific version? If so, please specify:

In Process runtime

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

C#

Question

I have an azure function (in process runtime) and I'd like to print some logs using Console.WriteLine(). I can see these logs when run locally, but how to see them in the azure portal?

@nikvarma
Copy link

you can view the logs multiple ways. follow below simple steps.

  • Navigate to your function App on Azure portal
  • Click on your function
  • on left side - Click on Monitor tab.

you'll see the request came to your functions.

@bhagyshricompany bhagyshricompany self-assigned this Feb 5, 2024
@bhagyshricompany
Copy link

bhagyshricompany commented Feb 5, 2024

Thanks for informing the log you can enable and see in the application insight.

@varkey98
Copy link
Author

I found out that for the logs to be shown in the azure platform, the DI logger should be used and Console.WriteLine() ones are skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants