Skip to content

Add support for setting the value in "using" #6

Open
@rsabirov

Description

@rsabirov

Some sink implementations using the name of sink name which is different from namespace. To support this we need to introduce value in using part of the config.

Here is example for https://github.com/saleem-mirza/serilog-sinks-azure-analytics.

app.config way of configuring:

<appSettings>
  <add key="serilog:using:AzureLogAnalytics" value="Serilog.Sinks.AzureAnalytics" />
 </appSettings>

Expected xml way of configuring:

<serilog>
  <using>
    <add key="AzureLogAnalytics" value="Serilog.Sinks.AzureAnalytics"/>
  </using>
</serilog>

Having only value should be still supported:

<serilog>
  <using>
    <add value="Serilog.Enrichers.Thread" />
    <add value="Serilog.Enrichers.Process" />
    <add value="Serilog.Sinks.Seq" />
  </using>
</serilog>

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