Skip to content

Releases: serilog-contrib/Serilog.Logfmt

1.0.3 Complex & sequence properties support

04 Jun 15:15
Compare
Choose a tag to compare

This release adds support for complex & sequence properties in the LogContext. Also fixes some bugs :)

Also: license set to Apache 2.0

Release 1.0.2 with double quotes support

27 May 14:15
Compare
Choose a tag to compare

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:

  1. Do nothing (this could lead to invalid messages) q.Preserve()
  2. Change inner double quotes by single quotes. This is the default q.ConvertToSingle()
  3. Escape inner double quotes by using \" q.Escape()
  4. Remove inner double quotes q.Remove()

First release

30 Apr 07:58
Compare
Choose a tag to compare

This is the 1st release... let's see how this evolves...