Releases: serilog-contrib/Serilog.Logfmt
Releases · serilog-contrib/Serilog.Logfmt
1.0.3 Complex & sequence properties support
Release 1.0.2 with double quotes support
Adds support for double quotes management.
.UseSerilog((hostBuilderContext, config) =>
{
config.MinimumLevel.Verbose()
.Enrich.FromLogContext()
// .WriteTo.Console()
.WriteTo.Console(formatter: new LogfmtFormatter(opt => opt.OnDoubleQuotes(q => q.Escape())));
})
If a double quote is found inside a message (that is also surrounded by double quotes) you can choose what to do:
- Do nothing (this could lead to invalid messages)
q.Preserve()
- Change inner double quotes by single quotes. This is the default
q.ConvertToSingle()
- Escape inner double quotes by using
\"
q.Escape()
- Remove inner double quotes
q.Remove()
First release
This is the 1st release... let's see how this evolves...