You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kdeyko You can further configure Serilog (part of reflector) for additional sinks or formats. Have a look at Serilog json configuration and overriding configuration using environment variables in .net or using mounted files. (there is an example as part of the helm package for reflector that allows you to override the minimum logging level).
You can also enhance reflector's Serilog configuration (and helm values) to include a file output sink as well (or even json to console) but it would have to be with a configuration flag as this is not the desired output for the majority.
I'm far from coding (and even more far from windows-specific coding), but after quick googling it indeed looks like we need to update the Serilog's config to enable Serilog.Formatting.Compact. Current config uses only Serilog.Sinks.Console which explicitly states:
The default output is plain text; JSON formatting can be plugged in using a package such as Serilog.Formatting.Compact.
I'll try to find some spare time to implement this, but no promises :)
Hi there,
Is there a way to configure the log format to be JSON? This would be useful for indexing in Elasticsearch or Datadog.
Thanks.
The text was updated successfully, but these errors were encountered: