Varkeychan Jacob Thanks for posting your question in Microsoft Q&A. As described in doc: Logging, Console.Write
doesn't get captured in App Insights/Log Stream. The suggested way is to use ILogger
dependency injection to write the logs like below:
With ILogger
, the logs are logged into App Insights, and we can be viewed via Monitor Tab or Log Stream and make sure you have set log levels. I saw you posted this question in https://github.com/Azure/azure-functions-host/issues/9828 (similar discussion in reddit) and if you face any issues in using ILogger
, let me know with the details.
I hope this helps and feel free to reach out for any questions.
If you found the answer to your question helpful, please take a moment to mark it as Yes
for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.