Commit Graph
9 Commits
Author SHA1 Message Date
dualfroz c9cd6bf57c CachedUntil - Removed _cachedValuePeriodStart, older timestamps behave like with CachedSeconds 2026-10-04 12:55:58 +02:00
dualfroz 97f1f71bbe CachedUntil - Reuse _cachedValueExpires for the period end 2026-10-03 19:05:20 +02:00
dualfroz ce13d92371 CachedUntil - Only reuse cached value within its own period, and no overflow for the last period 2026-10-03 14:06:18 +02:00
dualfroz 9b380aaa7d CachedLayoutRendererWrapper - Added CachedUntil to reset cached value when hour or day changes
Fixes #4309
2026-10-03 13:57:41 +02:00
dualfroz 05f5fc4dc9 Describe IncludePublicFields as a fallback and write a shadowed field once 2026-09-23 11:51:34 +02:00
dualfroz f078e2a2c0 Fall back to public fields only when a type exposes no properties 2026-09-23 10:20:34 +02:00
dualfroz 209a7d0707 feat: add IncludePublicFields option to JsonSerializeOptions
Allow the JSON serializer to include public instance fields in the
output in addition to public properties, controlled by the new
JsonSerializeOptions.IncludePublicFields flag (default false to keep
existing behaviour). Field metadata is cached per type like enum and
property reflection lookups.

Closes #3920
2026-09-06 02:00:33 +02:00
dualfroz 44df43fabd docs: document default values for Filters properties in XML docs
Continues the work started for #5917 (already covered Targets, Layouts,
LayoutRenderers and Target Wrappers), extending the same pattern to the
NLog.Filters namespace so default values show up in IntelliSense and the
generated API docs.

Adds a regression test that scans all settable NLog.Filters properties
against the generated XML documentation file and fails if any of them is
missing a documented default value.
2026-08-28 13:24:33 +02:00
dualfroz 4640c55582 docs: document default values for Filters properties in XML docs
Continues the work started for #5917 (already covered Targets, Layouts,
LayoutRenderers and Target Wrappers), extending the same pattern to the
NLog.Filters namespace so default values show up in IntelliSense and the
generated API docs.

Adds a regression test that scans all settable NLog.Filters properties
against the generated XML documentation file and fails if any of them is
missing a documented default value.
2026-09-05 18:31:42 +02:00