Sunday, August 2, 2020

How to view context.log content from azure portal

When implementing azure function app, it is quite often to call context.log method to write log for debug and trace function.

In order to view the log for a particular function in the Azure function app, first open azure portal, select the function app, and then select the function you are working on. Click the Monitor menu from blade, and select logs menu. 

A new console window will open and show "connected" when it is ready. Leave this portal window open, and from somewhere else triggers the function to be executed.  Then the context.log will show on the console window.

No comments:

Post a Comment