Strona głównaNarzędzia

TL;DR: Another Serilog Expressions by example post, showing how to produce newline-delimited JSON logs from Serilog events. Newline-delimited JSON is a useful format for structured logs that will be read by other applications. Serilog’s built-in JsonFormatter implements this, but to my eyes, its output is awkward and verbose. The newer CompactJsonFormatter and RenderedCompactJsonFormatter in Serilog.Formatting.Compact produce cleaner JSON, and that format is supported by other tools in the Serilog ecos...

Tagi: serilog
Źródło: nblumhardt.com
Dziel się z innymi:
Customized JSON formatting with Serilog

Narzędzia 1233 dni, 18 godzin, 55 minut temu Piotr Stapp 58 pokaż kod licznika zwiń

Wczytywanie artykułów...