« CloudWatch » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
Ligne 2 : Ligne 2 :
= Links =
= Links =
* [https://github.com/aws/aws-logging-dotnet aws-logging-dotnet GitHub]
* [https://github.com/aws/aws-logging-dotnet aws-logging-dotnet GitHub]
= Log in JSON format =
Use the dotnet built-in logging Console and set the formatter to JSON.
<filebox fn='appsettings.json'>
{
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "Console": {
    "FormatterName": "json"
  }
}
</filebox>

Dernière version du 12 juin 2024 à 12:02

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"
  }
}