Skip to content

Adding Serilog Enrichers using App Config #30

Open
@noahsyed

Description

@noahsyed

For Serilog logs enrichment using an App config how can i add standard enrichers like ProcessId, ThreadId, MachineName? The syntax to add property enricher is below but am trying to use the above standard enrichers. There's an option to implement application json which i want to avoid as it needs Serilog 2.6. Any ideas how this can be done?

As an aside question using LoggerConfiguration().ReadFrom.KeyValuePairs(...) how i can pass standard enrichers i.e. ThreadId, Environment, Process enrichers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions