Package - Serilog.Sinks.Literate | Platforms - .NET 4.0+
An alternative colored console sink for Serilog that uses a literate programming-inspired presentation to showcase the structure/type of event data.
This is in contrast with the ColoredConsole
sink that uses color predominantly to emphasise an event's level.
To use the literate console sink, first install the NuGet package:
Install-Package Serilog.Sinks.Literate
Then add the sink to your logger configuration:
var log = new LoggerConfiguration()
.WriteTo.LiterateConsole()
.CreateLogger();
Or in XML app-settings format, making sure the assembly is deployed alongside your app:
<appSettings>
<add key="serilog:using" value="Serilog.Sinks.Literate" />
<add key="serilog:write-to:LiterateConsole" />
</appSettings>