Skip to content

Logging

Michael Hallock edited this page Jan 1, 2021 · 2 revisions

Logging settings can be adjusted as needed for debugging purposes. The Serilog.MinimumLevel setting can be changed in the config file to log more than the basic Information level to output more logs from various pieces of this application. Valid values are Verbose, Debug, Information, Error.

  "Serilog": {
    "Enrich": [ "FromLogContext" ],
    "MinimumLevel": "Information",
    "WriteTo": [
      { "Name": "Console" },
      {
        "Name": "File",
        "Args": {
          "path": "logs/HomeAutio.Mqtt.GoogleHome.log",
          "rollingInterval": "Day",
          "retainedFileCountLimit": 31
        }
      }
    ]
  }

Request / Response Logs

Setting MinimumLevel to Verbose will log the requests / responses from any calls Google makes to the application. These can be used to troubleshoot issues against Google's documentation if you are having issues.

Http Request Body: {...}
Http Response: {...}
Clone this wiki locally