Skip to content

Allow configuration of multiple seq servers #42

Open
@schnitty

Description

@schnitty

If I want to write to two Seq servers I can do this in code by:

.WriteTo.Seq("http://localhost:5341")
.WriteTo.Seq("http://otherhost:5341")
.CreateLogger();

I'm not sure how I can do this in appSettings
If I configure like so:

<add key="serilog:using:Seq" value="Serilog.Sinks.Seq" />
<add key="serilog:write-to:Seq.serverUrl" value="http://localhost:5341" />
<add key="serilog:write-to:Seq.serverUrl" value="http://otherhost:5341"/>

It ends up only sending logs to otherhost as the key is the same so it overwrites the first one.
Is there away to make these settings unique so that it ends up sending logs to both servers?

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