Skip to content

[Docs] Destructurer via json #300

@lonix1

Description

@lonix1

I have all my config in json. Does anyone know how to use the destructurer via json?

For example, for Serilog.Exceptions.EntityFrameworkCore:

.Enrich.WithExceptionDetails(
  new DestructuringOptionsBuilder()
  .WithDefaultDestructurers()
  .WithDestructurers(new[] { new DbUpdateExceptionDestructurer() })
)

How is that represented in the appsettings.json?

It would also be useful to add that to the docs in the corresponding section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues describing an enhancement or pull requests adding an enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions