Azure function apps logs not showing

后端 未结 6 815
刺人心
刺人心 2020-12-29 02:49

I\'m relatively new to Azure and I just went through the tutorial on how to create a new Azure function, which is triggered when a new blob is created, and had this as the d

6条回答
  •  无人及你
    2020-12-29 03:24

    Following the advice here worked for me. Configuring Log Level for Azure Functions

    If you want to see your logs show up immediately in the Portal console after you press "Run", then go to your "Function app settings" and add the following to your host.json file:

    "logging": {
        "fileLoggingMode": "always",
        "logLevel": {
            "default": "Information",
            "Host.Results": "Error",
            "Function": "Trace",
            "Host.Aggregator": "Trace"
        }
    }
    

    Note that this only worked for Javascript functions. For locally developed functions in other languages, the console can be a bit skittish.

提交回复
热议问题