Forum Discussion

DarrenMArdex's avatar
DarrenMArdex
Copper Contributor
Oct 12, 2022
Solved

Function apps - where do log messages go?

Probably a basic question, but in the sample PowerShell 'hello world' code that you get when you create a new function, there is this line:

 

Write-Host "PowerShell timer trigger function ran! TIME: $currentUTCtime"
 
When I run the function, I cannot see where this is output to. The application insights log shows messages relating to executing the function, but I cannot find the above message anywhere. What am I missing?
 
 
  • DarrenMArdex 

     

    This information is written to the Information Log that needs to be configured for the function app.

    If you are debugging using the Azure Function Core Tools utility, it will simply log this to the console.


    See this link for the different types of logging levels and PowerShell commands.

     

    You can then monitor the logs as outlined here.

    Hope this helps!

     

    - Johan

1 Reply

  • DarrenMArdex 

     

    This information is written to the Information Log that needs to be configured for the function app.

    If you are debugging using the Azure Function Core Tools utility, it will simply log this to the console.


    See this link for the different types of logging levels and PowerShell commands.

     

    You can then monitor the logs as outlined here.

    Hope this helps!

     

    - Johan

Resources