Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Function Logs Location Locally

Where can we find logs for Azure Functions (Java- for example) when we run it locally ? It is not inside the target folder. Please guide. Thanks.

like image 599
reverse Avatar asked Oct 19 '25 18:10

reverse


1 Answers

Add "fileLoggingMode": "always" to the logging configuration in your host.json file:

{
    "logging": {
      "logLevel": {
        "default": "Trace"
      },
      "fileLoggingMode": "always"
    }
}

Functions Core Tools will then write log files to:

%TMP%\LogFiles\Application\Functions

like image 175
eli Avatar answered Oct 22 '25 07:10

eli