Skip to content

Is it possible to specify value for named parameters of constructor #167

@vhatsura

Description

@vhatsura

Hey, guys!

In some case I need to specify named parameters of constructor (in most cases, it's needed for custom formatters).
Let's see it on a simple example.
To use custom formatter with Console sink we can use the following configuration:

{
  "Serilog": {
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "formatter": "JsonValueFormatter "
        }
      }
    ]
  }
}

Is it possible to somehow in above example to specify typeTagName parameter of constructor?

If it isn't possible to do, I will appreciate for ability to implement such functionality by myself.

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