21 Commits
Author SHA1 Message Date
dualfroz d20e7c3697 Describe this repository 2026-10-22 21:02:06 +02:00
dualfroz c07403dac0 Describe the field fallback in the LookupObjectProperties XML doc 2026-10-12 14:32:57 +02:00
dualfroz eb43ff4c98 Drop the extra MruCache and resolve public fields lazily into the existing cache entry 2026-10-11 18:59:41 +02:00
dualfroz 7c96e99fb3 CachedUntil - Removed unit-test for DateTime.MaxValue 2026-10-11 17:43:17 +02:00
upstream 13670749e5 Upstream NLog/NLog state of the touched files before e81d079174 2026-10-11 17:43:17 +02:00
dualfroz 9537db7a71 CachedUntil - Clamp CachedSeconds expiry to DateTime.MaxValue 2026-10-11 16:15:32 +02:00
dualfroz d490e07ea2 CachedUntil - Renamed CachedUntilOption to CachedUntilLifetime 2026-10-04 18:09:36 +02:00
dualfroz 9b8ab6666e CachedUntil - Made _cachedValueExpires nullable, only assigned with CachedSeconds or CachedUntil 2026-10-04 17:59:50 +02:00
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
upstream 9fc32d87a6 Upstream NLog/NLog state of the touched files before 390d384461 2026-10-02 16:30:08 +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
upstream b78676e244 Upstream NLog/NLog state of the touched files before cc54b6d1e1 2026-09-02 01:50:51 +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
upstream 2154098b97 Upstream NLog/NLog state of the touched files before 0302a60f8a 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
upstream 94b7d9de1f Upstream NLog/NLog state of the touched files before 229644059f 2026-08-28 13:24:33 +02:00