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 1036 dni, 4 godziny, 44 minuty temu Piotr Stapp 54 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu