Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
MIT License
1.14k stars 80 forks source link

CamelCase for structured logs #29

Closed robertmircea closed 3 years ago

robertmircea commented 3 years ago

Is it possible to format camel-case the json output for structured logs?


{
  "CategoryName": "PlayGround.Program",
  "LogLevel": "Information",
  "EventId": 0,
  "EventIdName": null,
  "Timestamp": "2020-11-14T10:11:49.940606+00:00",
  "Exception": null,
  "Message": "Original...",
  "Payload": null
}
neuecc commented 3 years ago

configure options.JsonSerializerOptions, it depends on System.Text.Json.