Skip to content

Destructure complex properties for async handling #5565

@snakefoot

Description

@snakefoot

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions