-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Milestone
Description
Remove the ability to customize the serializing of complex objects in the individual NLog-target, but instead transform into stable object-graph using the standard NLog object-property-reflection.
Avoid giving "dangerous" properties to NLog-target, that might explode when accessed at a later stage.
Maybe the default behavior is that only IDisposable
-objects are "dangerous" (where it will perform ToString), and everything else is seen as non-dangerous (direct pass-through) to reduce reflection nightmare with AOT.
Maybe introduce setting MaxRecursionLimit
to control how far down the object-property-reflection should go (0
= ToString on all complex objects).