What was broken Filter defaults were missing from the docs
The issue asked for property defaults to be visible in the generated XML docs, meaning Sandcastle and IntelliSense hints, not only in the source. Earlier changes covered targets, layouts and wrappers, while the NLog.Filters namespace had not a single entry.
How we fixed it Default and [Required] on every filter
Each of the 19 settable properties in NLog.Filters, from Filter.Action to the WhenRepeatedFilter options, has a remarks entry with its default, and those a filter cannot work without are marked [Required]. We left out the obsolete OptimizeBufferReuse on purpose, since it always returns true.
#6275
What was broken Hourly refresh depended on when the app started
The cachedSeconds option counts from the moment the value was cached. A refresh, of an IP address for example, exactly at midnight or on the hour therefore only worked if the application started at exactly that time.
How we fixed it cachedUntil=HourChange and DayChange
A new CachedUntil property clears the cached value when the event TimeStamp moves into a new hour or day, and also works in the short form ${local-ip:cachedUntil=HourChange}. It combines with cachedSeconds, the earlier deadline wins, and the period end is inclusive so it cannot overflow DateTime.MaxValue.
#6292
What was broken The JSON serializer ignored public fields
The issue asked for the NLog JSON serializer to write fields, not only properties, since older applications keep their data in public fields. An object without public properties reached the log only as the result of ToString().
How we fixed it The IncludePublicFields option
A new IncludePublicFields option in JsonSerializeOptions and in JsonLayout, off by default, writes the public fields of an object that has no public properties. In JsonLayout it is set the same way as MaxRecursionLimit. The fields live in the same cache entry as the properties, so serializers with and without the option share a type without affecting each other's output, and a field hidden in a derived class is written once.
#6274