Skip to content

Support Serilog expressions in sink configuration #276

@ZBlocker655

Description

@ZBlocker655

Inspired by this Stack Overflow question

Rather than create a formatter class to pull in an expression for sink configuration in appsettings, why not provide direct support for expression configuration for a sink?

Example:

{
  "Name": "Console",
  "Args": { "expression": "[{@t:HH:mm:ss} {@l:u3} ({SourceContext})] {@m}" }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions