Support for CompactJsonFormatter when storing JSON of LogEvent in Data column
Closed this issue · 2 comments
Hello,
I was wondering if its possible to add support to use CompactJsonFormatter()
when using this sink where the entire LogEvent
object is serialised as JSON in the data
column when not using the sink that generates new columns for properties.
https://github.com/serilog/serilog-formatting-compact
The reasoning behind this is that I want to deserialise the JSON back into a LogEvent for a basic UI for viewing and querying log entries stored in Azure table storage.
If the JSON in the data
column was stored using compact JSON then it would be very easy to then use the https://github.com/serilog/serilog-formatting-compact-reader code to read it and convert them back to LogEvents.
PR for this is here to be considered for testing & review please @nblumhardt
#55
All merged in. Will close