CloudWatch

De Banane Atomic
Aller à la navigationAller à la recherche

Links

Log in JSON format

Use the dotnet built-in logging Console and set the formatter to JSON.

appsettings.json
{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "Console": {
    "FormatterName": "json"
  }
}