Skip to content

Delete Machine Logging Config (Debug, Info, and Error)

Maria Kalusz edited this page Mar 14, 2020 · 8 revisions

Microsoft Documentation

https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring

Prerequisites

Testing

  • Function URL

    https://maria-fun-usw2-task141.azurewebsites.net/api/deleteRequest
    
  • Sample body

      {
         "MachineID": 1
      }
    
  • Checking added logging in Application Invocation

Steps

  1. Add the following configuration to the host.json file:

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