Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CamelCase for structured logs

robertmircea opened this issue · comments

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
}

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