<PackageReference Include="Serilog.Formatting.Compact" Version="2.0.0" />

Serilog.Formatting.Compact.CompactJsonFormatter

public class CompactJsonFormatter : ITextFormatter
An ITextFormatter that writes events in a compact JSON format.
public CompactJsonFormatter(JsonValueFormatter valueFormatter = null)

Construct a CompactJsonFormatter, optionally supplying a formatter for LogEventPropertyValues on the event.

public static void FormatEvent(LogEvent logEvent, TextWriter output, JsonValueFormatter valueFormatter)

Format the log event into the output.

public void Format(LogEvent logEvent, TextWriter output)

Format the log event into the output. Subsequent events will be newline-delimited.